home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2006-04-04 | 731.6 KB | 25,451 lines
// IMSIGX.IDL -- Interface file for IMSIGX project // // This file will be processed by the MIDL tool to // produce the marshalling code. // // Note to TechWriters: // This file can be parsed by an automated documentation engine called // "DocJet" to produce HTML or RTF hyperlinked documentation. // The trick is to put comments in specific locations within the // file. You can also prevent documentation by enclosing parts of the // file within an #if-#else-#endif block. The part between the #else and // the #endif will NOT be generated from. // // What needs to be done: // 1. Remarks sections for each documented interface (class). // 2. Remarks and Return Value sections for each documented method. // 3. Comment for each parameter of each docuemented method. // cpp_quote("/******************************************************************/") cpp_quote("/* */") cpp_quote("/* TurboCAD for Windows */") cpp_quote("/* Copyright (c) 1993 - 1997 */") cpp_quote("/* International Microcomputer Software, Inc. */") cpp_quote("/* (IMSI) */") cpp_quote("/* All rights reserved. */") cpp_quote("/* */") cpp_quote("/******************************************************************/") import "oaidl.idl"; // import "ocidl.idl"; /////////////////////////////////////////////////////////////////////////// // Forward interface declarations interface IGlobal; interface IApplication; interface IDrawing; interface IGraphic; interface IVertex; interface IMatrix; interface ICamera; interface IGrid; interface IBrushPattern; interface BrushPatterns; interface PageSetup; interface ApplicationCallbacks; interface ApplicationOptions; interface DrawingCallbacks; interface DrawingOptions; interface Drawings; interface Graphics; interface Selection; interface Vertices; interface Property; interface Properties; interface NamedView; interface NamedViews; interface RegenMethod; interface RegenMethods; interface Layer; interface Layers; interface LineStyle; interface LineStyles; interface BrushStyle; interface BrushStyles; interface Filter; interface Filters; interface NamedColor; interface NamedColors; interface BoundingBox; interface Block; interface Blocks; interface PickEntry; interface PickResult; interface Window; interface Windows; interface KeyBinding; interface KeyBindings; interface CommandBar; interface CommandBars; interface CommandBarControl; interface CommandBarControls; interface Tool; interface Tools; interface AddIn; interface AddIns; interface ScaleSystem; interface ScaleSystems; interface GraphicSet; interface GraphicSets; interface UndoRecord; interface Table; interface Tables; interface Style; interface Styles; interface View; interface Views; interface GraphicCallbacks; interface IAppEvents; interface Macro; interface Macros; interface LayersSet; interface LayersSets; // Single exported function cpp_quote("STDAPI IMSIGXGetXApplication(IApplication** ppApp);") /////////////////////////////////////////////////////////////////////////// // Typedefs /////////////////////////////////////////////////////////////////////////// import "gxtypes.idl"; // Application and Global objects // /* * The global (nameless, session) object. * Allows access to system properties and collections. * Collections include Drawings collection, Filters collection, NamedColors collection, * Properties collection and RegenMethods collection. */ [ object ,uuid(6A481100-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10000000) ,helpstring("The global (nameless, session) object.") ] interface IGlobal : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the active Drawing object. */ [ propget ,helpcontext(0x10000001) ,helpstring("Returns the active Drawing object.") ] HRESULT ActiveDrawing( [out, retval] IDrawing** prop // The active Drawing object. ); /** * Returns the name of the active printer, as a string. */ [ propget ,hidden, restricted ,helpcontext(0x10000002) ,helpstring("Returns the name of the active printer, as a string.") ] HRESULT ActivePrinter( [out, retval] BSTR* prop // The printer name. ); /** * Sets the active printer by name. */ [ propput ,hidden, restricted ,helpcontext(0x10000002) ,helpstring("Sets the the active printer by name.") ] HRESULT ActivePrinter( [in] BSTR prop // The printer name ); /** * Returns the active Window object. * @see TCADAPI TCWActiveWindow function */ [ propget ,hidden, restricted ,helpcontext(0x10000003) ,helpstring("Returns the active Window object.") ] HRESULT ActiveWindow( [out, retval] Window** prop // The active Window object. ); /** * Returns the Application object's AddIns collection. */ [ propget ,hidden, restricted ,helpcontext(0x10000004) ,helpstring("Returns the Application object's AddIns collection.") ] HRESULT AddIns( [out, retval] AddIns** prop // The AddIns collection. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10000005) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Application object's Drawings collection, the collection of Drawing objects. */ [ propget ,helpcontext(0x10000006) ,helpstring("Returns the Application object's Drawings collection, the collection of Drawing objects.") ] HRESULT Drawings( [out, retval] Drawings** prop // The Drawings collection. ); /** * Returns the Application object's Filters collection. */ [ propget ,helpcontext(0x10000007) ,helpstring("Returns the Application object's Filters collection.") ] HRESULT Filters( [out, retval] Filters** prop // The Filters collection. ); /** * Returns the Application object's KeyBindings collection. */ [ propget ,hidden, restricted ,helpcontext(0x10000008) ,helpstring("Returns the Application object's KeyBindings collection.") ] HRESULT KeyBindings( [out, retval] KeyBindings** prop // The KeyBindings collection. ); /** * Returns the name of the object, as a string. * Name is the default property of the Application object. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10000009) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the Application object's NamedColors collection. */ [ propget ,helpcontext(0x1000000A) ,helpstring("Returns the Application object's NamedColors collection.") ] HRESULT NamedColors( [out, retval] NamedColors** prop // The NamedColors collection. ); /** * Returns the Application object's ApplicationOptions object. */ [ propget ,hidden, restricted ,helpcontext(0x1000000B) ,helpstring("Returns the Application object's ApplicationOptions object.") ] HRESULT Options( [out, retval] ApplicationOptions** prop // The ApplicationOptions object. ); /** * Returns the parent object for the specified object. * The parent of the Application object is itself. */ [ propget ,helpcontext(0x1000000C) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Returns the Application object's RegenMethods collection. */ [ propget ,helpcontext(0x1000000D) ,helpstring("Returns the Application object's RegenMethods collection.") ] HRESULT RegenMethods( [out, retval] RegenMethods** prop // The RegenMethods collection. ); /** * Returns the Selection object of the active Drawing object. */ [ propget ,helpcontext(0x1000000E) ,helpstring("Returns the selection of the active Drawing object.") ] HRESULT Selection( [out, retval] Selection** prop // The Selection object. ); /** * Sets the text in the Application object's status bar. */ [ propput ,hidden, restricted ,helpcontext(0x1000000F) ,helpstring("Sets the text in the Application object's status bar.") ] HRESULT StatusBar( [in] BSTR prop // The text to set. ); /** * Returns the Application object's CommandBars collection. */ [ propget ,hidden, restricted ,helpcontext(0x10000010) ,helpstring("Returns the Application object's CommandBars collection.") ] HRESULT CommandBars( [out, retval] CommandBars** prop // The CommandBars collection. ); /** * Returns the Application object's Tools collection. */ [ propget ,helpcontext(0x10000011) ,helpstring("Returns the Application object's Tools collection.") ] HRESULT Tools( [out, retval] Tools** prop // The Tools collection. ); /** * Returns the Application object's Windows collection, the collection of Window objects. */ [ propget ,hidden, restricted ,helpcontext(0x10000012) ,helpstring("Returns the Application object's Windows collection, the collection of Window objects.") ] HRESULT Windows( [out, retval] Windows** prop // The Windows collection. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Composes a key code out of a number of key combinations. */ [ helpcontext(0x10000013) ,helpstring("Composes a key code out of a number of key combinations.") ,hidden, restricted ] HRESULT BuildKeyCode( [in] ImsiKey BaseKey, // The base key [in, optional] VARIANT* ModKey, // The key modifier [in, optional] VARIANT* ModKey2, // A second key modifier [in, optional] VARIANT* ModKey3, // A third key modifier [out, retval] long* prop // The calculated key code ); /** * Returns key codes as a string. */ [ helpcontext(0x10000014) ,helpstring("Returns key codes as a string.") ,hidden, restricted ] HRESULT KeyString( [in] long KeyCode, // The key code [in, optional] VARIANT* KeyCode2, // A second key code [out, retval] BSTR* prop // The returned string ); [ propget ,helpcontext(0x10000050) ,helpstring("Returns the Application object's TieMethods collection.") ] HRESULT TieMethods( [out, retval] IDispatch** prop // The TieMethods collection. ); /** * Returns the Application object's Renders collection. */ [ propget ,helpcontext(0x10000051) ,helpstring("Returns the Application object's Renders collection.") ] HRESULT Renders( [out, retval] IDispatch** prop // The Renders collection. ); /** * Returns the Application object's ToolEvents interface. */ [ propget ,helpcontext(0x10000052) ,helpstring("Returns the Application object's ToolEvents interface.") ] HRESULT ToolEvents( [out, retval] IDispatch** prop // The ToolEvents interface ); /** * Returns the Application object's Properties collection. * For the complete list of available Application Properties, follow * <A HREF="appprops.html">this link</A>. * * @see TCADAPI TCWAppPropertyGet/Set functions */ [ propget ,helpcontext(0x10000022) ,helpstring("Returns the Application object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); }; /** * The application (session) object. * Allows access to system properties and collections. * Collections include Drawings collection, Filters collection, NamedColors collection, * Properties collection and RegenMethods collection. */ [ object ,uuid(6A481101-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10000000) ,helpstring("The application (session) object.") ] interface IApplication : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the active Drawing object. */ [ propget ,helpcontext(0x10000001) ,helpstring("Returns the active Drawing object.") ] HRESULT ActiveDrawing( [out, retval] IDrawing** prop // The active Drawing object. ); /** * Returns the name of the active printer, as a string. */ [ propget ,hidden, restricted ,helpcontext(0x10000002) ,helpstring("Returns the name of the active printer, as a string.") ] HRESULT ActivePrinter( [out, retval] BSTR* prop // The printer name. ); /** * Sets the active printer by name. */ [ propput ,hidden, restricted ,helpcontext(0x10000002) ,helpstring("Sets the the active printer by name.") ] HRESULT ActivePrinter( [in] BSTR prop // The printer name. ); /** * Returns the active Window object. * * @see TCADAPI TCWActiveWindow function */ [ propget ,hidden, restricted ,helpcontext(0x10000003) ,helpstring("Returns the active Window object.") ] HRESULT ActiveWindow( [out, retval] Window** prop // The active Window object. ); /** * Returns the Application object's AddIns collection. */ [ propget ,hidden, restricted ,helpcontext(0x10000004) ,helpstring("Returns the Application object's AddIns collection.") ] HRESULT AddIns( [out, retval] AddIns** prop // The AddIns collection. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10000005) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the build number, as a string. */ [ propget ,helpcontext(0x10000006) ,helpstring("Returns the build number, as a string.") ] HRESULT Build( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The build number, as a string. ); /** * Returns the Application object's ApplicationCallbacks object. */ [ propget ,hidden, restricted ,helpcontext(0x10000007) ,helpstring("Returns the Application object's ApplicationCallbacks object.") ] HRESULT Callbacks( [out, retval] ApplicationCallbacks** prop // The ApplicationCallbacks object. ); /** * Returns the text that appears in the title bar of the main window. */ [ propget // ,hidden, restricted ,helpcontext(0x10000008) ,helpstring("Returns the text that appears in the title bar of the main window.") ] HRESULT Caption( [out, retval] BSTR* prop // The title bar caption, as a string. ); /** * Sets the text that appears in the title bar of the main window. */ [ propput ,hidden, restricted ,helpcontext(0x10000008) ,helpstring("Sets the text that appears in the title bar of the main window.") ] HRESULT Caption( [in] BSTR prop // The title bar caption, as a string. ); /** * True if the Blocks window is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x10000009) ,helpstring("True if the Blocks window is displayed.") ] HRESULT DisplayBlocksWindow( [out, retval] IMSI_BOOL* prop // True if the Blocks window is displayed. ); /** * True if the Blocks window is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x10000009) ,helpstring("True if the Blocks window is displayed.") ] HRESULT DisplayBlocksWindow( [in] IMSI_BOOL prop // True if the Blocks window is displayed. ); /** * True if the edit bar is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x1000000A) ,helpstring("True if the edit bar is displayed.") ] HRESULT DisplayEditBar( [out, retval] IMSI_BOOL* prop // True if the edit bar is displayed. ); /** * True if the edit bar is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x1000000A) ,helpstring("True if the edit bar is displayed.") ] HRESULT DisplayEditBar( [in] IMSI_BOOL prop // True if the edit bar is displayed. ); /** * True if TurboCAD is in full-screen mode. */ [ propget ,hidden, restricted ,helpcontext(0x1000000B) ,helpstring("True if TurboCAD is in full-screen mode.") ] HRESULT DisplayFullScreen( [out, retval] IMSI_BOOL* prop // True if TurboCAD is in full-screen mode. ); /** * True if TurboCAD is in full-screen mode. */ [ propput ,hidden, restricted ,helpcontext(0x1000000B) ,helpstring("True if TurboCAD is in full-screen mode.") ] HRESULT DisplayFullScreen( [in] IMSI_BOOL prop // True if TurboCAD is in full-screen mode. ); /** * True if the Info window is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x1000000C) ,helpstring("True if the Info window is displayed.") ] HRESULT DisplayInfoWindow( [out, retval] IMSI_BOOL* prop // True if the Info window is displayed. ); /** * True if the Info window is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x1000000C) ,helpstring("True if the Info window is displayed.") ] HRESULT DisplayInfoWindow( [in] IMSI_BOOL prop // True if the Info window is displayed. ); /** * True if rulers are visible for all drawings. */ [ propget ,hidden, restricted ,helpcontext(0x1000000D) ,helpstring("True if rulers are visible for all drawings.") ] HRESULT DisplayRulers( [out, retval] IMSI_BOOL* prop // True if rulers are visible for all drawings. ); /** * True if rulers are visible for all drawings. */ [ propput ,hidden, restricted ,helpcontext(0x1000000D) ,helpstring("True if rulers are visible for all drawings.") ] HRESULT DisplayRulers( [in] IMSI_BOOL prop // True if rulers are visible for all drawings. ); /** * True if scroll bars are visible for all drawings. */ [ propget ,hidden, restricted ,helpcontext(0x1000000E) ,helpstring("True if scroll bars are visible for all drawings.") ] HRESULT DisplayScrollBars( [out, retval] IMSI_BOOL* prop // True if scroll bars are visible. ); /** * True if scroll bars are visible for all drawings. */ [ propput ,hidden, restricted ,helpcontext(0x1000000E) ,helpstring("True if scroll bars are visible for all drawings.") ] HRESULT DisplayScrollBars( [in] IMSI_BOOL prop // True if scroll bars are visible. ); /** * True if the status bar is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x1000000F) ,helpstring("True if the status bar is displayed.") ] HRESULT DisplayStatusBar( [out, retval] IMSI_BOOL* prop // True if the status bar is displayed. ); /** * True if the status bar is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x1000000F) ,helpstring("True if the status bar is displayed.") ] HRESULT DisplayStatusBar( [in] IMSI_BOOL prop // True if the status bar is displayed. ); /** * True if the Status dialog window is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x10000010) ,helpstring("True if the Status dialog window is displayed.") ] HRESULT DisplayStatusDialog( [out, retval] IMSI_BOOL* prop // True if the Status dialog window is displayed. ); /** * True if the Status dialog window is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x10000010) ,helpstring("True if the Status dialog window is displayed.") ] HRESULT DisplayStatusDialog( [in] IMSI_BOOL prop // True if the Status dialog window is displayed. ); /** * True if the Symbol window is displayed. */ [ propget ,hidden, restricted ,helpcontext(0x10000011) ,helpstring("True if the Symbol window is displayed.") ] HRESULT DisplaySymbolWindow( [out, retval] IMSI_BOOL* prop // True if the Symbol window is displayed. ); /** * True if the Symbol window is displayed. */ [ propput ,hidden, restricted ,helpcontext(0x10000011) ,helpstring("True if the Symbol window is displayed.") ] HRESULT DisplaySymbolWindow( [in] IMSI_BOOL prop // True if the Symbol window is displayed. ); /** * Returns the Application object's Drawings collection, the collection of Drawing objects. */ [ propget ,helpcontext(0x10000012) ,helpstring("Returns the Application object's Drawings collection, the collection of Drawing objects.") ] HRESULT Drawings( [out, retval] Drawings** prop // The Drawings collection. ); /** * Returns the Application object's Filters collection. */ [ propget ,helpcontext(0x10000013) ,helpstring("Returns the Application object's Filters collection.") ] HRESULT Filters( [out, retval] Filters** prop // The Filters collection. ); /** * Returns the height of the main window. */ [ propget ,hidden, restricted ,helpcontext(0x10000014) ,helpstring("Returns the height of the main window.") ] HRESULT Height( [out, retval] double* prop // The height of the main window. ); /** * Sets the height of the main window. */ [ propput ,hidden, restricted ,helpcontext(0x10000014) ,helpstring("Sets the height of the main window.") ] HRESULT Height( [in] double prop // The height of the main window. ); /** * True if TurboCAD is in interactive mode. */ [ propget ,hidden, restricted ,helpcontext(0x10000015) ,helpstring("True if TurboCAD is in interactive mode.") ] HRESULT Interactive( [out, retval] IMSI_BOOL* prop // True if TurboCAD is in interactive mode. ); /** * True if TurboCAD is in interactive mode. */ [ propput ,hidden, restricted ,helpcontext(0x10000015) ,helpstring("True if TurboCAD is in interactive mode.") ] HRESULT Interactive( [in] IMSI_BOOL prop // True if TurboCAD is in interactive mode. ); /** * Returns the Application object's KeyBindings collection. */ [ propget ,hidden, restricted ,helpcontext(0x10000016) ,helpstring("Returns the Application object's KeyBindings collection.") ] HRESULT KeyBindings( [out, retval] KeyBindings** prop // The KeyBindings collection. ); /** * Returns the distance from the left edge of the physical screen to the left edge of the main window, in points. */ [ propget ,hidden, restricted ,helpcontext(0x10000017) ,helpstring("Returns the distance from the left edge of the physical screen to the left edge of the main window, in points.") ] HRESULT Left( [out, retval] double* prop // The main window's left edge distance. ); /** * Sets the distance from the left edge of the physical screen to the left edge of the main window, in points. */ [ propput ,hidden, restricted ,helpcontext(0x10000017) ,helpstring("Sets the distance from the left edge of the physical screen to the left edge of the main window, in points.") ] HRESULT Left( [in] double prop // The main window's left edge distance. ); /** * Returns the path to the LIBRARY directory, not including the final separator. */ [ propget ,hidden, restricted ,helpcontext(0x10000018) ,helpstring("Returns the path to the LIBRARY directory, not including the final separator.") ] HRESULT LibraryPath( [out, retval] BSTR* prop // The path name, as a string. ); /** * Sets the path to the LIBRARY directory, not including the final separator. */ [ propput ,hidden, restricted ,helpcontext(0x10000018) ,helpstring("Sets the path to the LIBRARY directory, not including the final separator.") ] HRESULT LibraryPath( [in] BSTR prop // The path name, as a string. ); /** * Returns the name of the Application object, as a string. * Name is the default property of the Application object. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10000019) ,helpstring("Returns the name of the Application object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the Application object. ); /** * Returns the Application object's NamedColors collection. */ [ propget ,helpcontext(0x1000001A) ,helpstring("Returns the Application object's NamedColors collection.") ] HRESULT NamedColors( [out, retval] NamedColors** prop // The NamedColors collection. ); /** * Returns the name and version number of the current operating system. */ [ propget ,hidden, restricted ,helpcontext(0x1000001B) ,helpstring("Returns the name and version number of the current operating system.") ] HRESULT OperatingSystem( [out, retval] BSTR* prop // The name and version of the operating system. ); /** * Returns the Application object's ApplicationOptions object. */ [ propget ,hidden, restricted ,helpcontext(0x1000001C) ,helpstring("Returns the Application object's ApplicationOptions object.") ] HRESULT Options( [out, retval] ApplicationOptions** prop // The ApplicationOptions object. ); /** * Returns the registered organization name, as a string. */ [ propget ,hidden, restricted ,helpcontext(0x1000001D) ,helpstring("Returns the registered organization name, as a string.") ] HRESULT OrganizationName( [out, retval] BSTR* prop // The organization name. ); /** * Returns the parent object for the specified object. * The parent of the Application object is itself. */ [ propget ,helpcontext(0x1000001E) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Returns the complete path of the object, as a string, without including the final separator and name of the object. */ [ propget ,helpcontext(0x1000001F) ,helpstring("Returns the complete path of the object, as a string, without including the final separator and name of the object.") ] HRESULT Path( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The path. ); /** * Returns the profile name. */ [ propget ,helpcontext(0x10000020) ,helpstring("Returns the profile name.") ] HRESULT ProfileName( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The name of the profile file. ); /** * Sets the profile name. */ [ propput ,helpcontext(0x10000020) ,helpstring("Sets the profile name.") ] HRESULT ProfileName( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The profile name ); /** * Display a warning or notification message. */ [ helpcontext(0x10000021) ,helpstring("Display a warning or notification message.") ] HRESULT MessageBox( [in] BSTR Message, // Message string [in, optional] VARIANT* Flags, // MB_ flags for API ::MessageBox call [out, retval] long* prop // Id of button that dismissed the dialog ); /** * Returns the Application object's Properties collection. * For the complete list of available Application Properties, follow * <A HREF="appprops.html">this link</A>. * * @see TCADAPI TCWAppPropertyGet/Set functions */ [ propget ,helpcontext(0x10000022) ,helpstring("Returns the Application object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); /** * Returns the Application object's RegenMethods collection. */ [ propget ,helpcontext(0x10000023) ,helpstring("Returns the Application object's RegenMethods collection.") ] HRESULT RegenMethods( [out, retval] RegenMethods** prop // The RegenMethods collection. ); /** * Returns the Application object's ScaleSysColl. */ [ propget ,hidden, restricted ,helpcontext(0x10000024) ,helpstring("Returns the Application object's ScaleSysColl.") ] HRESULT ScaleSystems( [out, retval] ScaleSystems** prop // The ScaleSysColl. ); /** * True if screen updating is on. */ [ propget ,hidden, restricted ,helpcontext(0x10000025) ,helpstring("True if screen updating is on.") ] HRESULT ScreenUpdating( [out, retval] IMSI_BOOL* prop // True if screen updating is on. ); /** * True if screen updating is on. */ [ propput ,hidden, restricted ,helpcontext(0x10000025) ,helpstring("True if screen updating is on.") ] HRESULT ScreenUpdating( [in] IMSI_BOOL prop // True if screen updating is on. ); /** * Returns the Selection object of the active Drawing object. */ [ propget ,helpcontext(0x10000026) ,helpstring("Returns the selection of the active Drawing object.") ] HRESULT Selection( [out, retval] Selection** prop // The Selection object. ); /** * True if ToolTips are turned on. */ [ propget ,hidden, restricted ,helpcontext(0x10000027) ,helpstring("True if ToolTips are turned on.") ] HRESULT ShowToolTips( [out, retval] IMSI_BOOL* prop // True if ToolTips are turned on. ); /** * True if ToolTips are turned on. */ [ propput ,hidden, restricted ,helpcontext(0x10000027) ,helpstring("True if ToolTips are turned on.") ] HRESULT ShowToolTips( [in] IMSI_BOOL prop // True if ToolTips are turned on. ); /** * Returns the active snap modes. * <p> * A long integer that can be tested against the ImsiSnapMode enumerated values. */ [ propget ,helpcontext(0x10000028) ,helpstring("Returns the active snap modes.") ] HRESULT SnapModes( [out, retval] long* prop // The active snap modes. ); /** * Sets the active snap modes. */ [ propput ,helpcontext(0x10000028) ,helpstring("Sets the active snap modes.") ] HRESULT SnapModes( [in] long prop // The active snap modes, composed of bitwise or'ed ImsiSnapMode values. ); /** * Sets the text in the Application object's status bar. */ [ propput ,hidden, restricted ,helpcontext(0x10000029) ,helpstring("Sets the text in the Application object's status bar.") ] HRESULT StatusBar( [in] BSTR prop // The text to set. ); /** * Appends or replaces the text in the Application object's status dialog. */ [ propput ,hidden, restricted ,helpcontext(0x1000002A) ,helpstring("Appends or replaces the text in the Application object's status dialog.") ] HRESULT StatusDialogText( // [in] BSTR prop, // The text to append or replace. [in, optional] VARIANT* Replace // True to replace text. ,[in] BSTR prop // The text to append or replace. ); /** * Returns the object's Tables collection. */ [ propget ,hidden, restricted ,helpcontext(0x1000002B) ,helpstring("Returns the object's Tables collection.") ] HRESULT Tables( [out, retval] Tables** prop // The Tables collection. ); /** * Returns the local path where templates are stored. */ [ propget ,hidden, restricted ,helpcontext(0x1000002C) ,helpstring("Returns the local path where templates are stored.") ] HRESULT TemplatesPath( [out, retval] BSTR* prop // The path name. ); /** * Sets the local path where templates are stored. */ [ propput ,hidden, restricted ,helpcontext(0x1000002C) ,helpstring("Sets the local path where templates are stored.") ] HRESULT TemplatesPath( [in] BSTR prop // The path name. ); /** * Returns the Application object's CommandBars collection. */ [ propget ,hidden, restricted ,helpcontext(0x1000002D) ,helpstring("Returns the Application object's CommandBars collection.") ] HRESULT CommandBars( [out, retval] CommandBars** prop // The CommandBars collection. ); /** * Returns the Application object's Tools collection. */ [ propget ,helpcontext(0x1000002E) ,helpstring("Returns the Application object's Tools collection.") ] HRESULT Tools( [out, retval] Tools** prop // The Tools collection. ); /** * The distance from the top edge of the physical screen to the top edge of the main window, in points. */ [ propget ,hidden, restricted ,helpcontext(0x1000002F) ,helpstring("The distance from the top edge of the physical screen to the top edge of the main window, in points.") ] HRESULT Top( [out, retval] double* prop // The main window's top edge distance. ); /** * The distance from the top edge of the physical screen to the top edge of the main window, in points. */ [ propput ,hidden, restricted ,helpcontext(0x1000002F) ,helpstring("The distance from the top edge of the physical screen to the top edge of the main window, in points.") ] HRESULT Top( [in] double prop // The main window's top edge distance. ); /** * Returns the height of the space that can be used in the main window area (the window is not maximized). */ [ propget ,hidden, restricted ,helpcontext(0x10000030) ,helpstring("Returns the height of the space that can be used in the main window area (the window is not maximized).") ] HRESULT UsableHeight( [out, retval] double* prop // The usable height. ); /** * Returns the width of the space that can be used in the main window area (the window is not maximized). */ [ propget ,hidden, restricted ,helpcontext(0x10000031) ,helpstring("Returns the width of the space that can be used in the main window area (the window is not maximized).") ] HRESULT UsableWidth( [out, retval] double* prop // The usable width. ); /** * True if the user interface is active. */ [ propget ,helpcontext(0x10000032) ,helpstring("True if the user interface is active.") ] HRESULT UserControl( [out, retval] IMSI_BOOL* prop // True if the user interface is active. ); /** * True if the user interface is active. */ [ propput ,helpcontext(0x10000032) ,helpstring("True if the user interface is active.") ] HRESULT UserControl( [in] IMSI_BOOL prop // True if the user interface is active. ); /** * Returns the name of the current user, as a string. */ [ propget ,hidden, restricted ,helpcontext(0x10000033) ,helpstring("Returns the name of the current user, as a string.") ] HRESULT UserName( [out, retval] BSTR* prop // The user name. ); /** * Sets the name of the current user, as a string. */ [ propput ,hidden, restricted ,helpcontext(0x10000033) ,helpstring("Sets the name of the current user, as a string.") ] HRESULT UserName( [in] BSTR prop // The user name. ); /** * Returns the version number of TurboCAD, as a string. */ [ propget ,helpcontext(0x10000034) ,helpstring("Returns the version number of TurboCAD, as a string.") ] HRESULT Version( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The version number. ); /** * True if the main window is visible. */ [ propget ,helpcontext(0x10000035) ,helpstring("True if the main window is visible.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if the main window is visible. ); /** * True if the main window is visible. */ [ propput ,helpcontext(0x10000035) ,helpstring("True if the main window is visible.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if the main window is visible. ); /** * The distance from the left edge of the application window to the right edge of the application window. */ [ propget ,hidden, restricted ,helpcontext(0x10000036) ,helpstring("The distance from the left edge of the application window to the right edge of the application window.") ] HRESULT Width( [out, retval] double* prop // The width of the main window. ); /** * The distance from the left edge of the application window to the right edge of the application window. */ [ propput ,hidden, restricted ,helpcontext(0x10000036) ,helpstring("The distance from the left edge of the application window to the right edge of the application window.") ] HRESULT Width( [in] double prop // The width of the main window. ); /** * Returns the state of the window. */ [ propget ,hidden, restricted ,helpcontext(0x10000037) ,helpstring("Returns the state of the window.") ] HRESULT WindowState( [out, retval] ImsiWindowState* prop // The window state. ); /** * Sets the state of the window. */ [ propput ,hidden, restricted ,helpcontext(0x10000037) ,helpstring("Sets the state of the window.") ] HRESULT WindowState( [in] ImsiWindowState prop // The window state. ); /** * Returns the Application object's Windows collection, the collection of Window objects. */ [ propget ,hidden, restricted ,helpcontext(0x10000038) ,helpstring("Returns the Application object's Windows collection, the collection of Window objects.") ] HRESULT Windows( [out, retval] Windows** prop // The Windows collection. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Compose a key code out of a number of key combinations. */ [ helpcontext(0x10000039) ,helpstring("Compose a key code out of a number of key combinations.") ,hidden, restricted ] HRESULT BuildKeyCode( [in] ImsiKey BaseKey, // The base key [in, optional] VARIANT* ModKey, // The key modifier [in, optional] VARIANT* ModKey2, // A second key modifier [in, optional] VARIANT* ModKey3, // A third key modifier [out, retval] long* prop // The calculated key code ); /** * Checks the spelling of a single word. Returns True if the word is found in one of the dictionaries, False if it is not. * If CustomDictionary is not supplied, searches all dictionaries. * If IgnoreUppercase is not supplied, spell check will be case sensitive. * <p> * True if the word is found in one of the dictionaries. */ [ helpcontext(0x1000003A) ,helpstring("Checks the spelling of a single word. Returns True if the word is found in one of the dictionaries, False if it is not.") ,hidden, restricted ] HRESULT CheckSpelling( [in] BSTR Word, // The word to check. [in, optional] VARIANT* CustomDictionary, // The name of a dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* CustomDictionary2, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a dictionary. [in, optional] VARIANT* CustomDictionary10, // The name of a dictionary. [out, retval] IMSI_BOOL* prop // True if the word was found in any of the dictionaries. ); // Displays the standard Open dialog box and gets a filename from the user without actually opening any files. [ helpcontext(0x1000003B) ,helpstring("Displays the standard Open dialog box and gets a filename from the user without actually opening any files.") ] HRESULT GetOpenFilename( [in, optional] VARIANT* Filter, // If supplied, just use one filter. [in, optional] VARIANT* Title, // Title of dialog box. [in, optional] VARIANT* ButtonText, // Text for OK button. [in, optional] VARIANT* MultiSelect, // True to allow multiple selections. [out, retval] BSTR* prop // File name(s). ); /** * Displays the standard Save As dialog box and gets a filename from the user without actually saving any files. */ [ helpcontext(0x1000003C) ,helpstring("Displays the standard Save As dialog box and gets a filename from the user without actually saving any files.") ] HRESULT GetSaveAsFilename( [in, optional] VARIANT* InitialFilename, // File name to start with. [in, optional] VARIANT* Filter, // If supplied, just use one filter. [in, optional] VARIANT* Title, // Title of dialog box. [in, optional] VARIANT* ButtonText, // Text for OK button. [out, retval] BSTR* prop // File name. ); /** * Displays a Help topic. */ [ helpcontext(0x1000003D) ,helpstring("Displays a Help topic.") ] HRESULT Help( [in, optional] VARIANT* HelpFile, // The name of a help file. [in, optional] VARIANT* HelpContextID // A help context id. ); /** * Displays a dialog box for user input. Returns the information entered in the dialog box. */ [ helpcontext(0x1000003E) ,helpstring("Displays a dialog box for user input. Returns the information entered in the dialog box.") ,hidden, restricted ] HRESULT InputBox( [in] VARIANT* bstrPrompt, [in, optional] VARIANT* bstrTitle, [in, optional] VARIANT* Default, [in, optional] VARIANT* sLeft, [in, optional] VARIANT* sTop, [in, optional] VARIANT* bstrHelpFile, [in, optional] VARIANT* ulHelpContextID, [in, optional] VARIANT* sType, [out, retval] VARIANT* prop ); /** * Return key codes as a string. */ [ helpcontext(0x1000003F) ,helpstring("Return key codes as a string.") ,hidden, restricted ] HRESULT KeyString( [in] long KeyCode, // The key code [in, optional] VARIANT* KeyCode2, // A second key code [out, retval] BSTR* prop // The returned string ); /** * Restores the properties of the Graphic object that will be used as a template for all Graphics.Add calls. * Invoke this method to balance a previous call to PushGraphicDefaults. */ [ helpcontext(0x10000040) ,helpstring("Restores the properties of the Graphic object that will be used as a template for all Graphics.Add calls.") ] HRESULT PopGraphicDefaults( [in, optional] VARIANT* PrevDefaults // The previous default level to restore to. ); /** * Restores the properties of the Vertex object that will be used as a template for all Vertices.Add calls. * Invoke this method to balance a previous call to PushVertexDefaults. */ [ helpcontext(0x10000041) ,helpstring("Restores the properties of the Vertex object that will be used as a template for all Vertices.Add calls.") ] HRESULT PopVertexDefaults( [in, optional] VARIANT* PrevDefaults // The previous default level to restore to. ); /** * Sets the properties of the Graphic object that will be used as a template for all Graphics.Add calls. * Modifies the existing template according to the optional parameters passed. * Restore the existing template by invoking PopGraphicDefaults. */ [ helpcontext(0x10000042) ,helpstring("Sets the properties of the Graphic object that will be used as a template for all Graphics.Add calls.") ] HRESULT PushGraphicDefaults( [in, optional] VARIANT* Editable, // True if the Graphic object can be moved or deleted. [in, optional] VARIANT* Visible, // True if the Graphic object is visible. [in, optional] VARIANT* Cosmetic, // True if the Graphic object is not part of the main graphic. [in, optional] VARIANT* Unbounded, // True if the Graphic object is unbounded. [out, retval] long* DefaultLevel // The new default level. ); /** * Sets the properties of the Vertex object that will be used as a template for all Vertices.Add calls. * Modifies the existing template according to the optional parameters passed. * Restore the existing template by invoking PopVertexDefaults. */ [ helpcontext(0x10000043) ,helpstring("Sets the properties of the Vertex object that will be used as a template for all Vertices.Add calls.") ] HRESULT PushVertexDefaults( [in, optional] VARIANT* PenDown, // True if the Vertex object should draw. [in, optional] VARIANT* Selectable, // True if the Vertex object can be selected. [in, optional] VARIANT* Snappable, // True if the Vertex object can be snapped to. [in, optional] VARIANT* Editable, // True if the Vertex object can be moved or deleted. [in, optional] VARIANT* Linkable, // True if the Vertex object can be linked to. [in, optional] VARIANT* Calculated, // True if the Vertex object is recalculated by the RegenMethod. [out, retval] long* DefaultLevel // The new default level. ); /** * Quits the application. * Does not run any OnClose macros before exiting. * * @see TCADAPI TCWAppExit function */ [ helpcontext(0x10000044) ,helpstring("Quits the application.") ] HRESULT Quit( ); /** * Redoes the last user interface action. */ [ helpcontext(0x10000045) ,helpstring("Redoes the last user interface action.") ] HRESULT Redo( [in, optional] VARIANT* Times, // Number of actions to redo. [out, retval] IMSI_BOOL* prop // True if the redo was successful. ); /** * Repeats the last user interface action. */ [ helpcontext(0x10000046) ,helpstring("Repeats the last user interface action.") ,hidden, restricted ] HRESULT Repeat( [in] VARIANT* Times, // Number of actions to repeat. [out, retval] IMSI_BOOL* prop // True if the repeat was successful. ); /** * NOTE: It's a big no-no to specify "[out, retval] VARIANT* prop" * in VB 5.0's browser... * <p> * Run a macro (with optional arguments). */ [ helpcontext(0x10000047) ,helpstring("Run a macro (with optional arguments).") ,hidden, restricted ] HRESULT RunMacro( [in, optional] VARIANT* Macro, // The name of the macro. [in, optional] VARIANT* Arg1, // An argument to pass to the macro. [in, optional] VARIANT* Arg2, // An argument to pass to the macro. [in, optional] VARIANT* Arg3, // An argument to pass to the macro. [in, optional] VARIANT* Arg4, // An argument to pass to the macro. [in, optional] VARIANT* Arg5, // An argument to pass to the macro. [in, optional] VARIANT* Arg6, // An argument to pass to the macro. [in, optional] VARIANT* Arg7, // An argument to pass to the macro. [in, optional] VARIANT* Arg8, // An argument to pass to the macro. [in, optional] VARIANT* Arg9, // An argument to pass to the macro. [in, optional] VARIANT* Arg10, // An argument to pass to the macro. [in, optional] VARIANT* Arg11, // An argument to pass to the macro. [in, optional] VARIANT* Arg12, // An argument to pass to the macro. [in, optional] VARIANT* Arg13, // An argument to pass to the macro. [in, optional] VARIANT* Arg14, // An argument to pass to the macro. [in, optional] VARIANT* Arg15, // An argument to pass to the macro. [in, optional] VARIANT* Arg16, // An argument to pass to the macro. [out, retval] VARIANT* prop // The value returned by the macro. ); /** * Saves the current workspace. */ [ helpcontext(0x10000048) ,helpstring("Saves the current workspace.") ,hidden, restricted ] HRESULT SaveWorkspace( [in, optional] VARIANT* bstrFilename // Name for workspace file. ); /** * Cancels the last user interface action. */ [ helpcontext(0x10000049) ,helpstring("Cancels the last user interface action.") ] HRESULT Undo( [in, optional] VARIANT* Times, // Number of actions to undo. [out, retval] IMSI_BOOL* prop // True if the Undo was successful. ); /** * Returns a Graphic object associated with the internal handle. * Private. */ [ restricted ,helpcontext(0x1000004A) ,helpstring("Private. Returns a Graphic object associated with the internal handle.") ] HRESULT _GDispatch( [in] long hGraphic, [in] IUnknown* pIUnkOuter, [out] IGraphic** ppIGraphic, [out] Graphics** ppGraphics ); /** * Returns a Tool object associated with the internal handle. * Private. */ [ restricted ,helpcontext(0x1000004B) ,helpstring("Private. Returns a Tool object associated with the internal handle.") ] HRESULT _TDispatch( [in] long nFamilyIndex, [in] long nToolIndex, [out] Tool** ppTool ); /** * Returns a View object associated with the internal handle. * Private. * <p> */ [ restricted ,helpcontext(0x1000004C) ,helpstring("Private. Returns a View object associated with the internal handle.") ] HRESULT _VDispatch( [in] long hViewport, [out] View** ppView, [out] IDrawing** ppIDrawing ); /** * Connects an ApplicationEvents object sink to TurboCAD. * Set the mask parameter to only receive a subset of the full event set. */ [ helpcontext(0x1000004D) ,helpstring("Connects an ApplicationEvents object sink to TurboCAD.") ] HRESULT ConnectEvents( [in] IDispatch* EventSink, // Object that will receive events. [in, optional] VARIANT* EventMask, // Mask bits or'ed together (see ImsiEventMask). [out, retval] long* ConnectionID // ID to be used in DisconnectEvents method. ); /** * Disconnects an ApplicationEvents object sink. */ [ helpcontext(0x1000004E) ,helpstring("Disconnects an ApplicationEvents object sink.") ] HRESULT DisconnectEvents( [in] long ConnectionID // ID returned by ConnectEvents method. ); /** * Interpret Expression string using TurboLISP. Returns the result as a String */ [ helpcontext(0x1000004F) ,helpstring("Interpret Expression string using TurboLISP. Returns the result as a String.") ] HRESULT RunTurboLISP( [in] BSTR* Expression, // the LISP expression as a string [out, retval] BSTR* Result // the result as a string ); /** * Returns the Application object's TieMethods collection. */ [ propget ,helpcontext(0x10000050) ,helpstring("Returns the Application object's TieMethods collection.") ] HRESULT TieMethods( [out, retval] IDispatch** prop // The TieMethods collection. ); /** * Returns the Application object's Renders collection. */ [ propget ,helpcontext(0x10000051) ,helpstring("Returns the Application object's Renders collection.") ] HRESULT Renders( [out, retval] IDispatch** prop // The Renders collection. ); /** * Returns the Application object's ToolEvents interface. */ [ propget ,helpcontext(0x10000052) ,helpstring("Returns the Application object's ToolEvents interface.") ] HRESULT ToolEvents( [out, retval] IDispatch** prop // The ToolEvents interface ); /** * Returns the Application object's Materials collection. */ [ propget ,helpcontext(0x12345678) ,helpstring("Returns the Application object's Materials collection.") ] HRESULT Materials( [out, retval] IDispatch** prop // The ToolEvents interface ); /** * Returns the Application object's Environments collection. */ [ propget ,helpcontext(0x12345678) ,helpstring("Returns the Application object's Environments collection.") ] HRESULT Environments( [out, retval] IDispatch** prop // The ToolEvents interface ); /** * Returns the Application object's Luminances collection. */ [ propget ,helpcontext(0x12345678) ,helpstring("Returns the Application object's Luminances collection.") ] HRESULT Luminances( [out, retval] IDispatch** prop // The ToolEvents interface ); /** * Returns the Application object's Extension object. */ [ helpcontext(0x12345678) ,helpstring("Returns the Application object's Extension object.") ] HRESULT CreateObject( [in ] BSTR bstrProgID ,[out, retval ] IDispatch** prop ); /** * Retrieves the string from the specified section in an initialisation file. */ [ helpcontext(0x12345678) ,helpstring("Retrieves a string from the specified section in an initialisation file.") ] HRESULT GetProfileString( [in ] BSTR bstrSection ,[in ] BSTR bstrName ,[in ] BSTR bstrDefVal ,[out, retval ] BSTR* prop ); /** * Returns the string from the specified section in an initialisation file. */ [ helpcontext(0x12345678) ,helpstring("Copies a string into the specified section in an initialisation file.") ] HRESULT PutProfileString( [in ] BSTR bstrSection ,[in ] BSTR bstrName ,[in ] BSTR prop ); /** * Retrieves an integer associated with key in the specified section of an initialisation file. */ [ helpcontext(0x12345678) ,helpstring("Retrieves an integer associated with key in the specified section of an initialisation file.") ] HRESULT GetProfileInt( [in ] BSTR bstrSection ,[in ] BSTR bstrName ,[in ] int nDefVal ,[out, retval ] int* prop ); /** * Returns the string from the spcified section in an initialisation file. */ [ helpcontext(0x12345678) ,helpstring("Copies an integer associated with key into the specified section of an initialisation file.") ] HRESULT PutProfileInt( [in ] BSTR bstrSection ,[in ] BSTR bstrName ,[in ] int prop ); /** * Retrieves process ID. */ [ helpcontext(0x12345678) ,helpstring("Retrieves process ID.") ] HRESULT GetProcessId( [out, retval ] long* pPropcId ); }; /** * A TurboCAD drawing (document). * Allows access to the document's properties. * Allows access to the graphics contained within the document. */ [ object ,uuid(6A481107-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10010000) ,helpstring("A TurboCAD drawing.") ] interface IDrawing : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the active Window object. * * @see TCADAPI TCWActiveWindow function */ [ propget ,hidden, restricted ,helpcontext(0x10010001) ,helpstring("Returns the active Window object.") ] HRESULT ActiveWindow( [out, retval] Window** prop // The active Window object. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10010002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Drawing object's Blocks collection. */ [ propget ,helpcontext(0x10010003) ,helpstring("Returns the Drawing object's Blocks collection.") ] HRESULT Blocks( [out, retval] Blocks** prop // The Blocks collection. ); /** * Returns the Drawing object's BrushStyles collection. */ [ propget ,helpcontext(0x10010004) ,helpstring("Returns the Drawing object's BrushStyles collection.") ] HRESULT BrushStyles( [out, retval] BrushStyles** prop // The BrushStyles collection. ); /** * Returns a DocumentProperties collection that represents all the built-in document properties for the specfied drawing. */ [ propget ,hidden, restricted ,helpcontext(0x10010005) ,helpstring("Returns a DocumentProperties collection that represents all the built-in document properties for the specfied drawing.") ] HRESULT BuiltinDocumentProperties( [out, retval] IDispatch** prop // The DocumentProperties collection ); /** * Returns a DocumentProperties collection that represents all the custom document properties for the specfied drawing. */ [ propget ,hidden, restricted ,helpcontext(0x10010006) ,helpstring("Returns a DocumentProperties collection that represents all the custom document properties for the specfied drawing.") ] HRESULT CustomDocumentProperties( [out, retval] IDispatch** prop // The DocumentProperties collection. ); /** * True if the Drawing object is embedded. */ [ propget ,hidden, restricted ,helpcontext(0x10010007) ,helpstring("True if Drawing object is embedded.") ] HRESULT Embedded( [out, retval] IMSI_BOOL* prop // True if the Drawing object is embedded. ); /** * Returns the name of the Drawing object, including its path on disk, as a string. */ [ propget ,helpcontext(0x10010008) ,helpstring("Returns the name of the Drawing object, including its path on disk, as a string.") ,hidden, restricted ] HRESULT FullName( [out, retval] BSTR* prop // The full path name. ); /** * Returns the Drawing object's Graphics collection. */ [ propget ,helpcontext(0x10010009) ,helpstring("Returns the Drawing object's Graphics collection.") ] HRESULT Graphics( [out, retval] Graphics** prop // The Graphics collection. ); /** * Returns the Drawing object's GraphicSets collection. */ [ propget ,helpcontext(0x1001000A) ,helpstring("Returns the Drawing object's GraphicSets collection.") ] HRESULT GraphicSets( [out, retval] GraphicSets** prop // The GraphicSets collection. ); /** * Returns the Drawing object's Grid object. */ [ propget ,restricted, hidden ,helpcontext(0x1001000B) ,helpstring("Returns the Drawing object's Grid object.") ] HRESULT Grid( [out, retval] IGrid** prop // The Grid object. ); /** * Sets the Drawing object's Grid object. */ [ propput ,restricted, hidden ,helpcontext(0x1001000B) ,helpstring("Sets the Drawing object's Grid object.") ] HRESULT Grid( [in] IGrid* prop // The Grid object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x1001000C) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the Drawing object's Layers collection. */ [ propget ,helpcontext(0x1001000D) ,helpstring("Returns the Drawing object's Layers collection.") ] HRESULT Layers( [out, retval] Layers** prop // The Layers collection. ); /** * Returns the Drawing object's LineStyles collection. */ [ propget ,helpcontext(0x1001000E) ,helpstring("Returns the Drawing object's LineStyles collection.") ] HRESULT LineStyles( [out, retval] LineStyles** prop // The LineStyles collection. ); /** * Returns the name of the object, as a string. * Name is the default property of the Drawing object. * * @see TCADAPI TCWDrawingName function */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x1001000F) ,helpstring("Returns the name of the object. as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the Drawing object's NamedViews collection. */ [ propget ,helpcontext(0x10010010) ,helpstring("Returns the Drawing object's NamedViews collection.") ] HRESULT NamedViews( [out, retval] NamedViews** prop // The NamedViews collection. ); /** * Returns the Drawing object's DrawingOptions object. */ [ propget ,restricted, hidden ,helpcontext(0x10010011) ,helpstring("Returns the Drawing object's DrawingOptions object.") ] HRESULT Options( [out, retval] DrawingOptions** prop // The DrawingOptions object. ); /** * Returns the Drawing object's PgSetObj. */ [ propget ,helpcontext(0x10010012) ,helpstring("Returns the Drawing object's PgSetObj.") ] HRESULT PageSetup( [out, retval] PageSetup** prop // The PgSetObj. ); /** * Returns the parent object for the specified object. * The parent of the Drawing object is the Application object. */ [ propget ,helpcontext(0x10010013) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Returns the complete path of the object, as a string, without including the final separator and name of the object. */ [ propget ,helpcontext(0x10010014) ,helpstring("Returns the complete path of the object, as a string, without including the final separator and name of the object.") ] HRESULT Path( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The path. ); /** * Returns the Drawing object's Properties collection. * For the complete list of available Drawing Properties, follow * <A HREF="dwgprops.html">this link</A>. * * @see TCADAPI TCWDrawingPropertyGet/Set functions */ [ propget ,helpcontext(0x10010015) ,helpstring("Returns the Drawing object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); /** * True if the Drawing object has been opened as read-only. */ [ propget ,restricted, hidden ,helpcontext(0x10010016) ,helpstring("True if the Drawing object has been opened as read-only.") ] HRESULT ReadOnly( [out, retval] IMSI_BOOL* prop // True if the Drawing object has been opened as read-only. ); /** * True if no changes have been made to the Drawing object since it was last saved. */ [ propget ,helpcontext(0x10010017) ,helpstring("True if no have been made to the Drawing object since it was last saved.") ] HRESULT Saved( [out, retval] IMSI_BOOL* prop // True if all changes have been saved. ); /** * True if no changes have been made to the Drawing object since it was last saved. */ [ propput ,helpcontext(0x10010017) ,helpstring("True if no have been made to the Drawing object since it was last saved.") ] HRESULT Saved( [in] IMSI_BOOL prop // True if all changes have been saved. ); /** * Returns the Drawing object's Selection object. */ [ propget ,helpcontext(0x10010018) ,helpstring("Returns the Drawing object's Selection object.") ] HRESULT Selection( [out, retval] Selection** prop // The Selection object. ); /** * Returns the Drawing object's Styles collection. */ [ propget ,helpcontext(0x10010019) ,helpstring("Returns the Drawing object's Styles collection.") ] HRESULT Styles( [out, retval] Styles** prop // The Styles collection. ); /** * Returns the object's Tables collection. */ [ propget ,restricted, hidden ,helpcontext(0x1001001A) ,helpstring("Returns the object's Tables collection.") ] HRESULT Tables( [out, retval] Tables** prop // The Tables collection. ); /** * Returns the type of Drawing object. */ [ propget ,restricted, hidden ,helpcontext(0x1001001B) ,helpstring("Returns the type of Drawing object.") ] HRESULT Type( [out, retval] ImsiDrawingType* prop // The type of Drawing object. ); /** * True if the user interface is active. */ [ propget ,restricted, hidden ,helpcontext(0x1001001C) ,helpstring("True if the user interface is active.") ] HRESULT UserControl( [out, retval] IMSI_BOOL* prop // True if the user interface is active. ); /** * Returns the Drawing object's Views collection. */ [ propget ,helpcontext(0x1001001D) ,helpstring("Returns the Drawing object's Views collection.") ] HRESULT Views( [out, retval] Views** prop // The Views collection. ); /** * Returns the Drawing object's Windows collection. */ [ propget ,restricted, hidden ,helpcontext(0x1001001E) ,helpstring("Returns the Drawing object's Windows collection.") ] HRESULT Windows( [out, retval] Windows** prop // The Windows collection. ); /** * Returns the internal handle associated with the Drawing object. * Private. */ [ propget ,restricted ,helpcontext(0x1001001F) ,helpstring("Private. Returns the internal handle associated with the Drawing object.") ] HRESULT _Handle( [out, retval] long* prop // The internal handle. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Makes this object the active Drawing object. * * @see TCADAPI TCWDrawingActivate function */ [ helpcontext(0x10010020) ,helpstring("Makes this object the active Drawing object.") /*,hidden, restricted*/ ] HRESULT Activate( ); /** * Opens a new URecObj in the Drawing object. * Use UndoRecord.AddGraphic, etc. to add graphics to the record. * Use UndoRecord.Close to close the record and add it to the Undo list. * * @see TCADAPI TCWUndoRecordStart function */ [ helpcontext(0x10010021) ,helpstring("Opens a new URecObj in the Drawing object.") ] HRESULT AddUndoRecord( [in, optional] BSTR MenuText, // The prompt to appear in the Undo list. [out, retval] UndoRecord** prop // The new URecObj. ); /** * Closes the Drawing object. * * @see TCADAPI TCWDrawingClose function. */ [ helpcontext(0x10010022) ,helpstring("Closes the Drawing object.") ] HRESULT Close( [in, optional] VARIANT* SaveChanges, // True to save changes. [in, optional] VARIANT* FileName, // Alternate file name to save as. [in, optional] VARIANT* Filter // Name or index of preferred filter. ); /** * Adds the contents of a file to the Drawing object. */ [ helpcontext(0x10010023) ,helpstring("Adds the contents of a file to the Drawing object.") //,restricted, hidden ] HRESULT InsertFile( BSTR FileName//, // The name of the file. ,[in, optional] VARIANT* pReserved // Reserved ); /** * Creates a new Window object for the Drawing object. */ [ helpcontext(0x10010024) ,helpstring("Creates a new Window object for the Drawing object.") ,restricted, hidden ] HRESULT NewWindow( [out, retval] Window** prop // The new Window object. ); /** * Pastes the contents of the Clipboard onto the Drawing object. */ [ helpcontext(0x10010025) ,helpstring("Pastes the contents of the Clipboard onto the Drawing object.") ,restricted, hidden ] HRESULT Paste( ); /** * Pastes the contents of the Clipboard onto the Drawing object. */ [ helpcontext(0x10010026) ,helpstring("Pastes the contents of the Clipboard onto the Drawing object.") ,restricted, hidden ] HRESULT PasteSpecial( [in, optional] VARIANT* DataType, // Name of data format to paste. [in, optional] VARIANT* Link, // True to paste link. [in, optional] VARIANT* DisplayAsIcon, // True to display as icon. [in, optional] VARIANT* IconFileName, // File containing icon. [in, optional] VARIANT* IconIndex, // Index of icon to use if displaying as icon. [in, optional] VARIANT* IconLabel, // Label to display if displaying as icon. [in, optional] VARIANT* XRef, // X coordinate of center of object [in, optional] VARIANT* YRef, // Y coordinate of center of object [in, optional] VARIANT* ZRef, // Z coordinate of center of object [in, optional] VARIANT* Width, // Width of object [in, optional] VARIANT* Height, // Height of object [in, optional] VARIANT* Anchor ); /** * Begins an interactive pick by rectangle. */ [ helpcontext(0x10010027) ,helpstring("Begins an interactive pick by rectangle.") ] HRESULT PickInteractive( [in] ImsiPickType Type, // Point, rect or polygon pick. [in, optional] VARIANT* TopLevel, // True if only top level Graphic object's are to be picked. [in, optional] VARIANT* Arcs, // True if arcs should be returned in pick. [in, optional] VARIANT* Text, // True if text should be returned in pick. [in, optional] VARIANT* Segments, // True if only segments should be returned in pick. [in, optional] VARIANT* Blocks, // True if segments in blocks should be returned in pick. [in, optional] VARIANT* Invisible, // True if invisible segements can be picked. [out, retval] PickResult** prop // The result of the pick ); /** * Prints the object. * * @see TCADAPI TCWDrawingPrint function. */ [ helpcontext(0x10010028) ,helpstring("Prints the object.") ,restricted, hidden ] HRESULT PrintOut( [in, optional] VARIANT* From, // Starting page number. [in, optional] VARIANT* To, // Ending page number. [in, optional] VARIANT* Copies, // Number of copies to print. [in, optional] VARIANT* ActivePrinter, // Name of printer to use. [in, optional] VARIANT* OutputFileName, // File name to print to. [in, optional] VARIANT* FitToPage, // True to fit on one page. [in, optional] VARIANT* Collate // True to collate copies. ); /** * Redoes the last user interface action. * * @see TCADAPI TCWRedo function. */ [ helpcontext(0x10010029) ,helpstring("Redoes the last user interface action.") ] HRESULT Redo( [in, optional] VARIANT* Times, // Number of actions to redo. [out, retval] IMSI_BOOL* prop // True if the redo was successful. ); /** * Repeats the last user interface action. * * @see TCADAPI TCWRedo function. */ [ helpcontext(0x1001002A) ,helpstring("Repeats the last user interface action.") ,restricted, hidden ] HRESULT Repeat( [in] VARIANT* Times, // Number of actions to repeat. [out, retval] IMSI_BOOL* prop // True if the repeat was successful. ); /** * Saves changes to the specified Drawing object. * * @see TCADAPI TCWDrawingSave function. */ [ helpcontext(0x1001002B) ,helpstring("Saves changes to the specified Drawing object.") ] HRESULT Save( ); /** * Saves the changes to the Drawing object in a different file. * * @see TCADAPI TCWDrawingSaveAs function. */ [ helpcontext(0x1001002C) ,helpstring("Saves the changes to the Drawing object in a different file.") ] HRESULT SaveAs( [in] BSTR Filename, // The file name to save to. [in, optional] VARIANT* Filter // Name or index of preferred filter. ); /** * Saves a copy of the Drawing object to a file but does not modify the open Drawing object. */ [ helpcontext(0x1001002D) ,helpstring("Saves a copy of the Drawing object to a file but does not modify the open Drawing object.") ] HRESULT SaveCopyAs( [in] BSTR Filename, // File name to save to. [in, optional] VARIANT* Filter // Name or index of preferred filter. ); /** * Selects all of the Graphic object's in the Drawing object's Graphics collection. * Has the same effect as Drawing.Graphics.Select. */ [ helpcontext(0x1001002E) ,helpstring("Selects all of the Graphic object's in the Drawing object's Graphics collection.") ] HRESULT SelectAll( ); /** * Sends the Drawing object as an attachment using the installed mail system. */ [ helpcontext(0x1001002F) ,helpstring("Sends the Drawing object as an attachment using the installed mail system.") ,restricted, hidden ] HRESULT Send( [in] VARIANT* Recipients, // Names of recipients, as a string or string array. [in, optional] VARIANT* Subject, // Subject line. [in, optional] VARIANT* Message, // Message. [in, optional] VARIANT* CCRecipients, // Names of CC recipients, as a string or string array. [in, optional] VARIANT* BCCRecipients, // Names of BCC recipients, as a string or string array. [in, optional] VARIANT* ReturnReceipt // True to request return receipt. ); /** * Sends the Drawing object as an attachment using the installed mail system. * Runs a dialog to get the mail information. */ [ helpcontext(0x10010030) ,helpstring("Sends the Drawing object as an attachment using the installed mail system.") ,restricted, hidden ] HRESULT SendMail( ); /** * Cancels the last user interface action. * * @see TCADAPI TCWUndo function. */ [ helpcontext(0x10010031) ,helpstring("Cancels the last user interface action.") ] HRESULT Undo( [in, optional] VARIANT* Times, // Number of actions to undo. [out, retval] IMSI_BOOL* prop // True if the Undo was successful. ); /** * Clears all the Drawing object's undo entries. * * @see TCADAPI TCWUndoClear function. */ [ helpcontext(0x10010032) ,helpstring("Clears all the Drawing object's undo entries.") ] HRESULT UndoClear( ); /** * Unselects all of the Graphic object's in the Drawing object's Graphics collection. * Has the same effect as Drawing.Graphics.Unselect or Drawing.Selection.Unselect. */ [ helpcontext(0x10010033) ,helpstring("Unselects all of the Graphic object's in the Drawing object's Graphics collection.") ] HRESULT UnselectAll( ); /** * Updates a link (or links). */ [ helpcontext(0x10010034) ,helpstring("Updates a link (or links).") ,restricted, hidden ] HRESULT UpdateLink( [in, optional] VARIANT* LinkName // Name of link to update. ); ////////////////////// New stuff added here \\\\\\\\\\\\\\\\\\\\ /** * Returns the location of the relative origin, as a Vertex object. */ [ propget ,helpcontext(0x10010035) ,helpstring("Returns the location of the relative origin from a Vertex object.") ] HRESULT RelativeOrigin( [out, retval] IVertex** prop ); /** * Sets the location of the relative origin, as a Vertex object. */ [ propput ,restricted, hidden ,helpcontext(0x10010035) ,helpstring("Sets the location of the relative origin from a Vertex object.") ] HRESULT RelativeOrigin( [in] IVertex* prop ); /** * Returns the Drawing object's NamedViews collection. */ [ propget ,helpcontext(0x10010036) ,helpstring("Returns the Drawing object's Macros collection.") ] HRESULT Macros( [out, retval] Macros** prop // The NamedViews collection. ); [ helpcontext(0x10010037) ,helpstring("update graphic in render scene") ] HRESULT RenderScenesGraphicsUpdate( [in] IDispatch *pDisp ,[in] ImsiRenderGraphicUpdate flag ); [ helpcontext(0x10010038) ,helpstring("update changes in render scene") ] HRESULT RenderScenesUpdateChanges( ); /** * Returns the copy Drawing CS as Matrix object */ [ propget ,helpcontext(0x10010039) ,helpstring("Returns the Drawing CS as Matrix object .") ] HRESULT UCS( [out, retval] IMatrix** prop // The Matrix object. ); [ propget ,helpcontext(0x1001003A) ,helpstring("returns the active View object") ] HRESULT ActiveView( [out, retval] View** pVal /* The ative View object*/ ); /** * Returns the Drawing object's PaperSpaces collection. */ [ propget ,helpcontext(0x1001003B) ,helpstring("Returns the Drawing object's PaperSpaces collection.") ] HRESULT PaperSpaces( [out, retval] IDispatch** prop // The PaperSpaces collection. ); /** * Returns the Drawing object's TieSets collection. */ [ propget ,helpcontext(0x1001003C) ,helpstring("Returns the Drawing object's PaperSpaces collection.") ] HRESULT TieSets( [out, retval] IDispatch** prop // The TieSets collection. ); /** * Sets the Drawing CS as Matrix object */ [ propput ,helpcontext(0x10010039) ,helpstring("Set the Drawing CS by Matrix object .") ] HRESULT UCS( [in] IMatrix* prop // The Matrix object. ); /** * Starts Edit Content of Group/Block */ [ helpcontext(0x10010040) ,helpstring("Starts Edit Content of Group/Block") ] HRESULT StartEditContent( [in] IDispatch* prop // The new Drawing's graphics collection. ,[out, retval] ImsiEditContentModeType* pbRet ); /** * Finish Edit Content of Group/Block */ [ helpcontext(0x10010040) ,helpstring("Finish Edit Content of Group/Block") ] HRESULT FinishEditContent( [out, retval] ImsiEditContentModeType* pecMode ); /* * */ [ propget ,helpcontext(0x10010040) ,helpstring("Returns current Edit Contaent State") ] HRESULT EditContent( [out, retval] ImsiEditContentModeType* pecMode ); /** * Returns the Drawing object's NamedUCSs collection. */ [ propget ,helpcontext(0x10010041) ,helpstring("Returns the Drawing object's NamedUCSs collection.") ] HRESULT NamedUCSs( [out, retval] IDispatch** prop ); /** * Returns the Drawing object's NamedUCSs collection. */ [ propget ,helpcontext(0x10010042) ,helpstring("Returns the Drawing object's LayersSets collection.") ] HRESULT LayersSets( [out, retval] LayersSets** prop ); }; /** * The collection of Drawing objects contained by the Application object. * Enumerates the Drawings contained by the Application. * Allows setting of properties for all drawings in the collection. */ [ object ,uuid(6A481108-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10020000) ,helpstring("The collection of Drawing objects contained by the Application object.") ] interface Drawings : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10020001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. * * @see TCADAPI TCWDrawingCount function. */ [ propget ,helpcontext(0x10020002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns an item in the collection. * Index can be specified as a long integer or as a string (Drawing name). */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10020003) ,helpstring("Returns an item in the collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IDrawing** prop // The item. ); /** * Returns the parent object for the specified object. * The parent of the Drawings collection is the Application object. */ [ propget ,helpcontext(0x10020004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10020005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a new Drawing object. * * @see TCADAPI TCWDrawingNew function. */ [ helpcontext(0x10020006) ,helpstring("Creates a new Drawing object.") ] HRESULT Add( [in, optional] VARIANT* Template, // A drawing template name. [out, retval] IDrawing** prop // The newly created Drawing object. ); /** * Closes all Drawing objects in the collection. */ [ helpcontext(0x10020007) ,helpstring("Closes all Drawing objects in the collection.") ] HRESULT Close( ); /** * Opens a previously saved Drawing object. * * @see TCADAPI TCWDrawingOpen function. */ [ helpcontext(0x10020008) ,helpstring("Opens a previously saved Drawing object.") ] HRESULT Open( [in] BSTR Filename, // Name of file to open. [in, optional] VARIANT* ReadOnly, // True if opened Drawing object should not be modified. [in, optional] VARIANT* Filter, // Name or index of preferred file filter. [out, retval] IDrawing** prop // The opened Drawing object. ); /** * Returns the index within the Drawings collection of the specified drawing handle. * Private. */ [ restricted ,helpcontext(0x10020009) ,helpstring("Private. Returns the index within the Drawings collection of the specified drawing handle.") ] HRESULT _FindIndex( [in] long d, // The drawing handle. [out, retval] long* prop // The index. ); }; /** * A graphic entity. Graphic objects can be standalone, or can be * contained by a Drawing object, a Block object, or a parent Graphic object. * <p> * RegenMethod objects support user-defined types. */ [ object ,uuid(6A481109-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10030000) ,helpstring("A graphic entity.") ] interface IGraphic : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10030001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Graphic object's brush style. */ [ propget ,helpcontext(0x10030002) ,helpstring("Returns the Graphic object's brush style.") ] HRESULT BrushStyle( [out, retval] BrushStyle** prop // The BrushStyle object. ); /** * Sets the Graphic object's brush style, either from a string or an object. */ [ propput ,helpcontext(0x10030002) ,helpstring("Sets the Graphic object's brush style, either from a string or an object.") ] HRESULT BrushStyle( [in] VARIANT* prop // The BrushStyle object or its name. ); /** * True if the object is built-in. */ [ propget ,helpcontext(0x10030003) ,helpstring("True if the object is built-in.") ] HRESULT Builtin( [out, retval] IMSI_BOOL* prop // Tre if the object is built-in. ); /** * Returns the Graphic object's GraphicCallbacks object. */ [ propget ,restricted, hidden ,helpcontext(0x10030004) ,helpstring("Returns the Graphic object's GraphicCallbacks object.") ] HRESULT Callbacks( [out, retval] GraphicCallbacks** prop // The GraphicCallbacks object. ); /** * True if the Graphic object is a closed figure. */ [ propget ,helpcontext(0x10030005) ,helpstring("True if the Graphic object is a closed figure.") ] HRESULT Closed( [out, retval] IMSI_BOOL* prop // True if the Graphic object is a closed figure. ); /** * True if the Graphic object is a closed figure. */ [ propput ,helpcontext(0x10030005) ,helpstring("True if the Graphic object is a closed figure.") ] HRESULT Closed( [in] IMSI_BOOL prop // True if the Graphic object is a closed figure. ); /** * True if the Graphic object is used for display regeneration only. */ [ propget ,helpcontext(0x10030006) ,helpstring("True if the Graphic object is used for display regeneration only.") ] HRESULT Cosmetic( [out, retval] IMSI_BOOL* prop // True if the Graphic object is used for display regeneration only. ); /** * True if the Graphic object is used for display regeneration only. */ [ propput ,helpcontext(0x10030006) ,helpstring("True if the Graphic object is used for display regeneration only.") ] HRESULT Cosmetic( [in] IMSI_BOOL prop // True if the Graphic object is used for display regeneration only. ); /** * True if the Graphic object is on the purge/undo list. */ [ propget ,helpcontext(0x10030007) ,helpstring("True if the Graphic object is on the purge/undo list.") ] HRESULT Deleted( [out, retval] IMSI_BOOL* prop // True if the Graphic object is on the purge/undo list. ); /** * True if the Graphic object is on the purge/undo list. */ [ propput ,helpcontext(0x10030007) ,helpstring("True if the Graphic object is on the purge/undo list.") ] HRESULT Deleted( [in] IMSI_BOOL prop // True if the Graphic object is on the purge/undo list. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10030008) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * True if the Graphic object can be edited in the user interface. */ [ propget ,helpcontext(0x10030009) ,helpstring("True if the Graphic object can be edited in the user interface.") ] HRESULT Editable( [out, retval] IMSI_BOOL* prop // True if the Graphic object can be edited in the user interface. ); /** * True if the Graphic object can be edited in the user interface. */ [ propput ,helpcontext(0x10030009) ,helpstring("True if the Graphic object can be edited in the user interface.") ] HRESULT Editable( [in] IMSI_BOOL prop // True if the Graphic object can be edited in the user interface. ); /** * Returns the Graphics collection which represents the children of this Graphic object. */ [ propget ,helpcontext(0x1003000A) ,helpstring("Returns the Graphics collection which represents the children of this Graphic object.") ] HRESULT Graphics( [out, retval] Graphics** prop // The Graphics collection. ); /** * Returns the Graphic object's database ID. */ [ propget ,helpcontext(0x1003000B) ,helpstring("Returns the Graphic object's database ID.") ] HRESULT ID( [out, retval] long* prop // The database ID. ); /** * Sets the Graphic object's database ID. */ [ propput ,helpcontext(0x1003000B) ,helpstring("Sets the Graphic object's database ID.") ] HRESULT ID( [in] long prop // The database ID. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x1003000C) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the Graphic object's layer. */ [ propget ,helpcontext(0x1003000D) ,helpstring("Returns the Graphic object's layer.") ] HRESULT Layer( [out, retval] Layer** prop // The Layer object. ); /** * Sets the Graphic object's layer, either from a string or an object. */ [ propput ,helpcontext(0x1003000D) ,helpstring("Sets the Graphic object's layer, either from a string or an object.") ] HRESULT Layer( [in] VARIANT* prop // The Layer object or its name. ); /** * Returns the Graphic object's LineStyle object. */ [ propget ,helpcontext(0x1003000E) ,helpstring("Returns the Graphic object's LineStyle object.") ] HRESULT LineStyle( [out, retval] LineStyle** prop // The LineStyle object. ); /** * Sets the Graphic object's LineStyle object, either from a string or an object. */ [ propput ,helpcontext(0x1003000E) ,helpstring("Sets the Graphic object's LineStyle object, either from a string or an object.") ] HRESULT LineStyle( [in] VARIANT* prop // The LineStyle object or its name. ); /** * Returns the name of the object. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x1003000F) ,helpstring("Returns the name of the object.") ] HRESULT Name( [out, retval] BSTR* prop // The object's name. ); /** * Sets the name of the object. */ [ propput, id(DISPID_VALUE) ,helpcontext(0x1003000F) ,helpstring("Sets the name of the object.") ] HRESULT Name( [in] BSTR prop // The object's name. ); /** * Returns the Vertices collection which represents the editable child Vertex objects of this Graphic object. */ [ propget ,helpcontext(0x10030010) ,helpstring("Returns the Vertices collection which represents the editable child Vertex objects of this Graphic object.") ] HRESULT Nodes( [out, retval] Vertices** prop // The Vertices collection. ); /** * Returns the parent object for the specified object. * If the Graphic object has not been added to a Drawing object, the parent of the Graphic object * is the Application object. Otherwise, the parent is a Graphic object or a Drawing object. */ [ propget ,helpcontext(0x10030011) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the Graphic object's Properties collection. * For the complete list of available Graphic Properties, follow * <A HREF="grfprops.html">this link</A>. * * @see TCADAPI TCWGraphicPropertyGet/Set functions */ [ propget ,helpcontext(0x10030012) ,helpstring("Returns the Graphic object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); /** * Returns the Graphic object's regen type. */ [ propget ,helpcontext(0x10030013) ,helpstring("Returns the Graphic object's regen type.") ] HRESULT RegenType( [out, retval] RegenMethod** prop // The RegenMethod object. ); /** * Sets the Graphic object's regen type. */ [ propput ,restricted, hidden ,helpcontext(0x10030013) ,helpstring("Sets the Graphic object's regen type.") ] HRESULT RegenType( [in] VARIANT* prop // The RegenMethod object or a string. ); /** * True if the Graphic object is the root of a tree. */ [ propget ,helpcontext(0x10030014) ,helpstring("True if the Graphic object is the root of a tree.") ] HRESULT Root( [out, retval] IMSI_BOOL* prop // True if the Graphic object is the root of a tree. ); /** * True if the Graphic object is the root of a tree. */ [ propput ,restricted, hidden ,helpcontext(0x10030014) ,helpstring("True if the Graphic object is the root of a tree.") ] HRESULT Root( [in] IMSI_BOOL prop // True if the Graphic object is the root of a tree. ); /** * Returns the Graphic object's style. */ [ propget ,restricted, hidden ,helpcontext(0x10030015) ,helpstring("Returns the Graphic object's style.") ] HRESULT Style( [out, retval] Style** prop // The StyleObj. ); /** * Sets the Graphic object's style. * Unimplemented. */ [ propput ,restricted, hidden ,helpcontext(0x10030015) ,helpstring("Unimplemented. Sets the Graphic object's style.") ] HRESULT Style( [in] VARIANT* prop // The StyleObj or a string. ); /** * Returns the Graphic object's type, as a string. */ [ propget ,helpcontext(0x10030016) ,helpstring("Returns the Graphic object's type, as a string.") ] HRESULT Type( [out, retval] BSTR* prop // The Graphic object's type. ); /** * True if the Graphic object is unbounded. */ [ propget ,helpcontext(0x10030017) ,helpstring("True if the Graphic object is unbounded.") ] HRESULT Unbounded( [out, retval] IMSI_BOOL* prop // True if the Graphic object is unbounded. ); /** * True if the Graphic object is unbounded. */ [ propput ,helpcontext(0x10030017) ,helpstring("True if the Graphic object is unbounded.") ] HRESULT Unbounded( [in] IMSI_BOOL prop // True if the Graphic object is unbounded. ); /** * Returns the Vertices collection which represents the child Vertex objects of this Graphic object. */ [ propget ,helpcontext(0x10030018) ,helpstring("Returns the Vertices collection which represents the child Vertex objects of this Graphic object.") ] HRESULT Vertices( [out, retval] Vertices** prop // The Vertices collection. ); /** * True if the object is visible. * Unimplemented. */ [ propget ,helpcontext(0x10030019) ,helpstring("True if the object is visible.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if the object is visible. ); /** * True if the object is visible. */ [ propput ,helpcontext(0x10030019) ,helpstring("Unimplemented. True if the object is visible.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if the object is visible. ); /** * Returns the z-order position of the object. */ [ propget ,restricted, hidden ,helpcontext(0x1003001A) ,helpstring("Returns the z-order position of the object.") ] HRESULT ZOrder( [out, retval] long* prop // The z-order position of the object. ); /** * Returns the internal handle associated with the Graphic object. * Private. */ [ propget ,restricted ,helpcontext(0x1003001B) ,helpstring("Private. Returns the internal handle associated with the Graphic object.") ] HRESULT _Handle( [out, retval] long* prop // The internal handle. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Set the center, radius, and other arc parameters. */ [ helpcontext(0x1003001C) ,helpstring("Set the center, radius, and other arc parameters.") ] HRESULT ArcSet( [in, optional] VARIANT* XCenter, // X coordinate of arc center point. [in, optional] VARIANT* YCenter, // Y coordinate of arc center point. [in, optional] VARIANT* ZCenter, // Z coordinate of arc center point. [in, optional] VARIANT* MajorAxis, // Length of major axis. [in, optional] VARIANT* MinorAxis, // Length of minor axis. [in, optional] VARIANT* StartAngle, // Starting angle in radians. [in, optional] VARIANT* EndAngle, // Ending angle in radians. [in, optional] VARIANT* RotationAngle // Rotation angle of major axis in radians. ); /** * Returns the Graphic object's bounding box. */ [ helpcontext(0x1003001D) ,helpstring("Returns the Graphic object's bounding box.") ] HRESULT CalcBoundingBox( [in, optional] VARIANT* Transform, // A transformation Matrix object. [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Checks the spelling of a text Graphic object. */ [ helpcontext(0x1003001E) ,helpstring("Checks the spelling of a text Graphic object.") ,restricted, hidden ] HRESULT CheckSpelling( [in, optional] VARIANT* CustomDictionary, // The name of a custom dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* CustomDictionary2, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary10 // The name of a custom dictionary. ); /** * Finishes and closes an open polygon Graphic object. * * @see TCADAPI TCWGraphicClose function */ [ helpcontext(0x1003001F) ,helpstring("Finishes and closes an open polygon Graphic object.") ] HRESULT Close( ); /** * Draws the Graphic object. */ [ helpcontext(0x10030020) ,helpstring("Draws the Graphic object.") ] HRESULT Draw( [in, optional] VARIANT* View // If supplied, the View object to draw on. ); /** * Converts the Graphic object to a different type. */ [ helpcontext(0x10030021) ,helpstring("Converts the Graphic object to a different type.") ,restricted, hidden ] HRESULT ConvertType( [in] VARIANT* GraphicType, // The type of the Graphic object. [in, optional] VARIANT* RegenMethod // A RegenMethod object or index. ); /** * Deletes the object. */ [ helpcontext(0x10030022) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x10030023) ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [out, retval] IGraphic** prop // The duplicated Graphic object. ); /** * Returns a graphic that is linked to this one. */ [ helpcontext(0x10030024) ,helpstring("Returns a graphic that is linked to this one.") ] HRESULT GetSubjectLink( [in, optional] VARIANT* VertexIndex, // The index or Vertex object to search. [in, optional] VARIANT* LinkIndex, // The link to get. [out, retval] IGraphic** prop // The linked Graphic object. ); /** * Acquires a lock for regen. */ [ helpcontext(0x10030025) ,helpstring("Acquires a lock for regen.") ] HRESULT RegenLock( [out, retval] long* prop // Previous value of lock count. ); /** * Releases a lock for regen. */ [ helpcontext(0x10030026) ,helpstring("Releases a lock for regen.") ] HRESULT RegenUnlock( [in, optional] VARIANT* LockCount // Lock count to reset to. ); /** * Adds the Graphic object to the Drawing object's Selection object. * * @see TCADAPI TCWGraphicPropertySet function. */ [ helpcontext(0x10030027) ,helpstring("Adds the Graphic object to the Drawing object's Selection object.") ] HRESULT Select( ); /** * Set the start point, height, width, and other text parameters. */ [ helpcontext(0x10030028) ,helpstring("Set the start point, height, width, and other text parameters.") ] HRESULT TextSet( [in, optional] VARIANT* Text, // The text string [in, optional] VARIANT* X, // X coordinate of text point. [in, optional] VARIANT* Y, // Y coordinate of text point. [in, optional] VARIANT* Z, // Z coordinate of text point. [in, optional] VARIANT* Width, // Width of object. [in, optional] VARIANT* Height, // Height of object. [in, optional] VARIANT* Angle // Rotation angle of object in radians. ); /** * Removes the Graphic object from the Drawing object's Selection object. * * @see TCADAPI TCWGraphicPropertySet function. */ [ helpcontext(0x10030029) ,helpstring("Removes the Graphic object from the Drawing object's Selection object.") ] HRESULT Unselect( ); ///////////////////// Blocks Groups and Hatches \\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Explodes a group or block insertion. * * @see TCADAPI TCWExplode function */ [ helpcontext(0x1003002A) ,helpstring("Explodes a group or block insertion.") ] HRESULT Explode( [out, retval] GraphicSet** prop // The exploded Graphic objects. ); /////////////////////////// Copy Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the Graphic object along a line. */ [ helpcontext(0x1003002B) ,helpstring("Copies the Graphic object along a line.") ,restricted, hidden ] HRESULT LinearCopyAbsolute( [in] double X, // X coordinate to copy to. [in] double Y, // Y coordinate to copy to. [in] double Z, // Z coordinate to copy to. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic object along a line. */ [ helpcontext(0x1003002C) ,helpstring("Copies the Graphic object along a line.") ,restricted, hidden ] HRESULT LinearCopyRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified offset is for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic object along a line. */ [ helpcontext(0x1003002D) ,helpstring("Copies the Graphic object along a line.") ,restricted, hidden ] HRESULT LinearCopyAngle( [in] double Length, // Length of copy. [in] double Angle, // Angle of copy in radians. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified length is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic object radially. */ [ helpcontext(0x1003002E) ,helpstring("Copies the Graphic object radially.") ,restricted, hidden ] HRESULT RadialCopyAbsolute( [in] double X0, // X coordinate of center of arc. [in] double Y0, // Y coordinate of center of arc. [in] double Z0, // Z coordinate of center of arc. [in] double X1, // X coordinate of point on arc. [in] double Y1, // Y coordinate of point on arc. [in] double Z1, // Z coordinate of point on arc. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic object radially. */ [ helpcontext(0x1003002F) ,helpstring("Copies the Graphic object radially.") ,restricted, hidden ] HRESULT RadialCopyAngle( [in] double X, // X coordinate of center of arc. [in] double Y, // Y coordinate of center of arc. [in] double Z, // Z coordinate of center of arc. [in] double Angle, // Angle between copies or for last copy. [in] double RotationAngle, // Angle to rotate each copy. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified angle is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. */ [ helpcontext(0x10030030) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyAbsolute( [in] double X, // X coordinate defining row and column spacing. [in] double Y, // Y coordinate defining row and column spacing. [in] double Z, // Z coordinate defining row and column spacing. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. */ [ helpcontext(0x10030031) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyRelative( [in] double X, // X coordinate of column offset. [in] double Y, // Y coordinate of row offset. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified offsets are for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Mirrors the Graphic object about a line. */ [ helpcontext(0x10030032) ,helpstring("Mirrors the Graphic object about a line.") ,restricted, hidden ] HRESULT MirrorCopyLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Mirrors the Graphic object about an angle. */ [ helpcontext(0x10030033) ,helpstring("Mirrors the Graphic object about an angle.") ,restricted, hidden ] HRESULT MirrorCopyAngle( [in] double X, // X coordinate to mirror to. [in] double Y, // Y coordinate to mirror to. [in] double Z, // Z coordinate to mirror to. [in] double Angle, // Angle of mirror. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Scales the Graphic object. * * @see TCADAPI TCWSelectionScale function. */ [ helpcontext(0x10030034) ,helpstring("Scales the Graphic object.") ] HRESULT Scale( [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * NOTE: The only reason RotateAxis and RotateAbsolute are defined the way they are * is because of a MIDL bug that prevents using more than a few double parameters... * <p> * Rotates the Graphic object. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10030035) ,helpstring("Rotates the Graphic object.") ] HRESULT RotateAxis( [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* XAxis, // X coordinate of axis direction. [in, optional] VARIANT* YAxis, // Y coordinate of axis direction. [in, optional] VARIANT* ZAxis, // Z coordinate of axis direction. [in, optional] VARIANT* X, // X coordinate of the rotation center. [in, optional] VARIANT* Y, // Y coordinate of the rotation center. [in, optional] VARIANT* Z, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic object. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10030036) ,helpstring("Rotates the Graphic object.") ] HRESULT RotateAbsolute( [in] VARIANT* XTo, // X coordinate of the point to rotate to. [in] VARIANT* YTo, // Y coordinate of the point to rotate to. [in] VARIANT* ZTo, // Z coordinate of the point to rotate to. [in] VARIANT* XFrom, // X coordinate of the point to rotate from. [in] VARIANT* YFrom, // Y coordinate of the point to rotate from. [in] VARIANT* ZFrom, // Z coordinate of the point to rotate from. [in, optional] VARIANT* XRef, // X coordinate of the rotation center. [in, optional] VARIANT* YRef, // Y coordinate of the rotation center. [in, optional] VARIANT* ZRef, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic object to a new location. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10030037) ,helpstring("Moves the Graphic object to a new location.") ] HRESULT MoveAbsolute( [in] double X, // X coordinate to move to. [in] double Y, // Y coordinate to move to. [in] double Z, // Z coordinate to move to. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic object by a specified offset. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10030038) ,helpstring("Moves the Graphic object by a specified offset.") ] HRESULT MoveRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Transforms the Graphic object. */ [ helpcontext(0x10030039) ,helpstring("Transforms the Graphic object.") ] HRESULT Transform( [in] IMatrix* Transform // The matrix to perform transformation. ); ////////////////////// Miscellaneous Edit Methods \\\\\\\\\\\\\\\\\\\\ /** * Brings the Graphic object to the front. * * @see TCADAPI TCWBringToFront function. */ [ helpcontext(0x1003003A) ,helpstring("Brings the Graphic object to the front.") ] HRESULT BringToFront( ); /** * Sends the Graphic object to the back. * * @see TCADAPI TCWSendToBack function. */ [ helpcontext(0x1003003B) ,helpstring("Sends the Graphic object to the back.") ] HRESULT SendToBack( ); ////////////////////// New stuff added here \\\\\\\\\\\\\\\\\\\\ /** * Returns the Graphic object's type, as an enumerated value. */ [ propget ,helpcontext(0x1003003C) ,helpstring("Returns the Graphic object's type, as an enumerated value.") ] HRESULT TypeByValue( [out, retval] ImsiGraphicType* prop // The Graphic object's type. ); /** * Returns the distance to the specified Graphic object. */ [ helpcontext(0x1003003D) ,helpstring("Returns the distance to the specified Graphic object.") ] HRESULT GetDistance( [in] double X, // The x coordinate of the point to be tested. [in] double Y, // The y coordinate of the point to be tested. [in] double Z, // The z coordinate of the point to be tested. [in, out, optional] VARIANT *ClosestVertex, // The closest vertex on the Graphic object. [in, out, optional] VARIANT *ClosestChild, // The closest child Graphic object. [out, retval] double *prop // The distance from (X, Y, Z) to the closest vertex. ); /** * Returns arrays of face data for a 3d surface Graphic object. */ [ helpcontext(0x1003003E) ,helpstring("Returns arrays of face data for a 3d surface Graphic object.") ] HRESULT GetFaceData( [in, out] VARIANT* VertexArray, // An array of (X, Y, Z) position values [in, out] VARIANT* VertexIndices, // An array of indices into the VertexArray [in, out] VARIANT* EdgeFlags // An array of flags ); /** * Generates a bounding polygon array to use in drag operations. * * @see View::DragOutline */ [ helpcontext(0x1003003F) ,helpstring("Generates a bounding polygon array to use in drag operations.") ] HRESULT CreateDragOutline( [in, out] VARIANT* Coords // Array of (X, Y, Z) polygon coordinates. ); /** * Returns the Graphic object's Attributes collection. */ [ propget ,helpcontext(0x10030040) ,helpstring("Returns the Graphic object's Attributes collection.") ] HRESULT Attributes( [out, retval] Properties** prop // The Attributes collection. ); /** * Returns the Block object referenced by an Insert. */ [ propget ,helpcontext(0x10030041) ,helpstring("Returns the Block object referenced by an Insert.") ] HRESULT Block( [out, retval] Block** prop // The Block object. ); /** * Returns Arc parameter information. * Data returned in array is as follows: * param[0] X coordinate of center point * param[1] Y coordinate of center point * param[2] Z coordinate of center point * param[3] X coordinate of major axis * param[4] Y coordinate of major axis * param[5] Z coordinate of major axis * param[6] ratio of minor/major axes (1.0 = circle) * param[7] start angle in radians * param[8] end angle in radians * param[9] 0.0 if open arc, 1.0 if closed (ellipse or circle) */ [ helpcontext(0x10030042) ,helpstring("Returns Arc parameter information.") ] HRESULT GetArcData( [in, out] VARIANT* varArcData // Array of 10 double values ); /** * Forces an update of the Graphic object's properties. */ [ helpcontext(0x10030043) ,helpstring("Forces an update of the Graphic object's properties.") ] HRESULT Update( ); /** * Returns the Block object referenced by an Insert. */ [ propput ,helpcontext(0x10030041) ,helpstring("Returns the Block object referenced by an Insert.") ] HRESULT Block( [in] Block* prop // The Block object. ); /** * Returns the Graphic CS as Matrix object */ [ propget ,helpcontext(0x10030044) ,helpstring("Returns the Graphic CS as Matrix object .") ] HRESULT UCS( [out, retval] IMatrix** prop // The Block object. ); /** * Returns the Graphic CS as Matrix object */ [ propput ,helpcontext(0x10030044) ,helpstring("Set the Graphic CS as Matrix object .") ] HRESULT UCS( [in] IMatrix* prop // The Matrix object. ); /** * Returns dimension size for a 3d surface (3DMesh) Graphic object. */ [ helpcontext(0x10030045) ,helpstring("dimension size for a 3DMesh Graphic object.") ] HRESULT GetFaceDimension( [in, out] long* M, [in, out] long* N, [in, out] long* facetCount ); /** * Returns surface object for imsiSurface Graphic object. */ [ propget ,helpcontext(0x10030046) ,helpstring("Returns surface object for imsiSurface Graphic object..") ] HRESULT Surface( [out, retval] IDispatch** prop ); /** * True if the object is selected. */ [ propget ,helpcontext(0x10030047) ,helpstring("True if the object is visible.") ] HRESULT Selected( [out, retval] IMSI_BOOL* prop // True if the object is visible. ); /** * True if the object is selected. */ [ propput ,helpcontext(0x10030047) ,helpstring("True if the object is selected.") ] HRESULT Selected( [in] IMSI_BOOL prop // True if the object is visible. ); /** * Returns Graphic's reference point. */ [ propget ,helpcontext(0x10030048) ,helpstring("Returns Graphic's reference point.") ] HRESULT ReferencePoint( [in, optional] VARIANT* bUseWorldCS ,[out, retval] IVertex** prop // True if the object is visible. ); //////////////////////////////////// v9 properties \\\\\\\\\\\\\\\\\\\\\\/ /** * Returns the Graphic CS as Matrix object */ [ propget ,helpcontext(0x10030049) ,helpstring("Returns the Graphic CS as object .") ] HRESULT CS( [out, retval] IDispatch** prop // The CS (Matrix) object. ); //////////////////////////////////// v9 methods \\\\\\\\\\\\\\\\\\\\\\/ /** * Duplicates the object and returns a reference to the new copy not belonging to any Graphics collection. */ [ ,helpcontext(0x1003004A) ,helpstring("Duplicates the object and returns a reference to the new copy not belonging to any Graphics collection.") ] HRESULT Clone( [in, optional] VARIANT* pvarFlags ,[out, retval] IGraphic** prop // The Graphic object. ); [ propget ,helpcontext(0x1003004B) ,helpstring("True if Graphic's CS shouldn't be changed while transformation") ] HRESULT FixCS( [out, retval] IMSI_BOOL* prop ); [ propput ,helpcontext(0x1003004B) ,helpstring("True if Graphic's CS shouldn't be changed while transformation") ] HRESULT FixCS( [in] IMSI_BOOL prop ); }; /** * The collection of Graphic objects contained by a Drawing object or a Graphic object. * Every Graphic object owns a Graphics collection, allowing for a hierarchy * of Graphic objects. */ [ object ,uuid(6A48110A-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10040000) ,helpstring("A collection of Graphic objects.") ] interface Graphics : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10040001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10040002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10040003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10040004) , helpstring("Returns part of a collection.")] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IGraphic** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10040005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10040006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ifndef METHOD_OVERFLOW_BUG /** * Applies a Style object to the contents of the collection. */ [ helpcontext(0x10040007) ,helpstring("Applies a Style object to the contents of the collection.") ,restricted, hidden ] HRESULT ApplyStyle( [in] Style* StyleToApply // The Style object to apply. ); /** * Checks the spelling of all the text Graphic object's in the collection. */ [ helpcontext(0x10040008) ,helpstring("Checks the spelling of all the text Graphic object's in the collection.") ,restricted, hidden ] HRESULT CheckSpelling( [in, optional] VARIANT* CustomDictionary, // The name of a custom dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* AlwaysSuggest, // True to suggest corrections. [in, optional] VARIANT* CustomDictionary2, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary10 // The name of a custom dictionary. ); /** * Adds a hatch pattern to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWCreateHatch function */ [ helpcontext(0x10040009) ,helpstring("Adds a hatch pattern to the collection from the Graphic objects in the collection.") ] HRESULT AddHatch( [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates a Style object based on the contents of the collection. */ [ helpcontext(0x1004000A) ,helpstring("Creates a Style object based on the contents of the collection.") ,restricted, hidden ] HRESULT CreateStyle( [in] Style* BasedOn, // The style to base the new Style object on. [out, retval] Style** prop // The newly created Style object. ); /** * Creates and adds an OLE object to the collection. */ [ helpcontext(0x1004000B) ,helpstring("Creates and adds an OLE object to the collection.") ,restricted, hidden ] HRESULT AddObject( [in, optional] VARIANT* ClassType, // Name of data format to paste. [in, optional] VARIANT* FileName, // Name of file to create object or link from. [in, optional] VARIANT* LinkToFile, // True if object is a link. [in, optional] VARIANT* DisplayAsIcon, // True to display as icon. [in, optional] VARIANT* IconFileName, // File containing icon. [in, optional] VARIANT* IconIndex, // Index of icon to use if displaying as icon. [in, optional] VARIANT* IconLabel, // Label to display if displaying as icon. [in, optional] VARIANT* X, // X coordinate of center of object. [in, optional] VARIANT* Y, // Y coordinate of center of object. [in, optional] VARIANT* Z, // Z coordinate of center of object. [in, optional] VARIANT* Width, // Width of object. [in, optional] VARIANT* Height, // Height of object. [in, optional] VARIANT* Anchor, // TODO: What's this for? [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1004000C) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanArcPoint( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for line endpoint. [in] double Y0, // Y coordinate on arc for line endpoint. [in] double Z0, // Z coordinate on arc for line endpoint. [in] double length, // length of tangent line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1004000D) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanToArc( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for the line's first endpoint. [in] double Y0, // Y coordinate on arc for the line's first endpoint. [in] double Z0, // Z coordinate on arc for the line's first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1004000E) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanFromArc( [in] IGraphic* TangentFrom, // Arc to draw line tangent from. [in] double X0, // X coordinate on arc for the line's second endpoint. [in] double Y0, // Y coordinate on arc for the line's second endpoint. [in] double Z0, // Z coordinate on arc for the line's second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1004000F) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTan2Arcs( [in] IGraphic* Arc1, // First arc. [in] IGraphic* Arc2, // Second arc. [in] IMSI_BOOL CounterClockwise, // True if tangent direction is counterclockwise. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multi segment leader (callout) line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10040010) ,helpstring("Creates and adds a multi segment leader (callout) line to the collection.") ,restricted, hidden ] HRESULT AddDimensionLeader( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in, optional] BSTR Text, // The text for the leader. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a baseline dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10040011) ,helpstring("Creates and adds a WHATEVER to the collection.") ,restricted, hidden ] HRESULT AddDimensionBaseline( [in] IGraphic* AddTo, // dimension line to add baseline dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a continuous dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10040012) ,helpstring("Creates and adds a continuous dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionContinuous( [in] IGraphic* AddTo, // dimension line to add continuous dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single segment double line to the collection. * * @see TCADAPI TCWDoubleLineSingle function */ [ helpcontext(0x10040013) ,helpstring("Creates and adds a single segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineSingle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double regular polygon to the collection. * * @see TCADAPI TCWDoubleLinePolygon function */ [ helpcontext(0x10040014) ,helpstring("Creates and adds a double regular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long Sides, // Number of sides. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rectangle to the collection. * * @see TCADAPI TCWDoubleLineRectangle function */ [ helpcontext(0x10040015) ,helpstring("Creates and adds a double rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rotated rectangle to the collection. * * @see TCADAPI TCWDoubleLineRotatedRectangle function */ [ helpcontext(0x10040016) ,helpstring("Creates and adds a double rotated rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLinePerpendicular function */ [ helpcontext(0x10040017) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment double line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineMultiline function */ [ helpcontext(0x10040018) ,helpstring("Creates and adds a multiple segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineIrregularPolygon function */ [ helpcontext(0x10040019) ,helpstring("Creates and adds a double irregular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLineParallel function */ [ helpcontext(0x1004001A) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1004001B) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1004001C) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToLine( [in] IGraphic* TangentTo, // Line to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1004001D) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTan3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1004001E) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing arc. [in] double Y1, // Y coordinate of point on existing arc. [in] double Z1, // Z coordinate of ponit on existing arc. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1004001F) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToLine( [in] IGraphic* TangentTo, // Line to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing line. [in] double Y1, // Y coordinate of point on existing line. [in] double Z1, // Z coordinate of ponit on existing line. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x10040020) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanTo3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a horizontal dimension to the collection. * * @see TCADAPI TCWDimensionHorizontal, TCWDimensionHorizontalEntity functions */ [ helpcontext(0x10040021) ,helpstring("Creates and adds a horizontal dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionHorizontal( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a vertical dimension to the collection. * * @see TCADAPI TCWDimensionVertical, TCWDimensionVerticalEntity functions */ [ helpcontext(0x10040022) ,helpstring("Creates and adds a vertical dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionVertical( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a parallel dimension to the collection. * * @see TCADAPI TCWDimensionParallel, TCWDimensionParallelEntity functions */ [ helpcontext(0x10040023) ,helpstring("Creates and adds a parallel dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionParallel( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated dimension to the collection. */ [ helpcontext(0x10040024) ,helpstring("Creates and adds a rotated dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRotated( [in] double X0, // X coordinate of first endpoint defining angle and direction. [in] double Y0, // Y coordinate of first endpoint defining angle and direction. [in] double Z0, // Z coordinate of first endpoint defining angle and direction. [in] double X1, // X coordinate of second endpoint defining angle and direction. [in] double Y1, // Y coordinate of second endpoint defining angle and direction. [in] double Z1, // Z coordinate of second endpoint defining angle and direction. [in] double X2, // X coordinate of first extension line. [in] double Y2, // Y coordinate of first extension line. [in] double Z2, // Z coordinate of first extension line. [in] double X3, // X coordinate of second extension line. [in] double Y3, // Y coordinate of second extension line. [in] double Z3, // Z coordinate of second extension line. [in] double X4, // X coordinate of dimension. [in] double Y4, // Y coordinate of dimension. [in] double Z4, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a datum dimension to the collection. */ [ helpcontext(0x10040025) ,helpstring("Creates and adds a datum dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDatum( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an angular dimension to the collection. */ [ helpcontext(0x10040026) ,helpstring("Creates and adds an angular dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionAngular( [in] IGraphic* Line1, // First graphic. [in] IGraphic* Line2, // Second graphic. [in] double X0, // X coordinate of dimension. [in] double Y0, // Y coordinate of dimension. [in] double Z0, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a radial dimension to the collection. */ [ helpcontext(0x10040027) ,helpstring("Creates and adds a radial dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRadius( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a diameter dimension to the collection. */ [ helpcontext(0x10040028) ,helpstring("Creates and adds a diameter dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDiameter( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); #endif //METHOD_OVERFLOW_BUG /** * Creates and adds a new Graphic object to the collection. */ [ helpcontext(0x10040029) ,helpstring("Creates and adds a new Graphic object to the collection.") ] HRESULT Add( [in, optional] VARIANT* GraphicType, // The type of the Graphic object. [in, optional] VARIANT* RegenMethod, // A RegenMethod object or index. [in, optional] VARIANT* Inherit, // True if the new Graphic object will inherit the properties of its parent. [in, optional] VARIANT* Style, // Not used in current implementation. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After, // The Graphic object or index that will precede the added Graphic object. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds an existing Graphic object to the collection. */ [ helpcontext(0x1004002A) ,helpstring("Adds an existing Graphic object to the collection.") ] HRESULT AddGraphic( [in] IGraphic* Graphic, // The Graphic object to add. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After // The Graphic object or index that will precede the added Graphic object. ); /** * Returns the collection's bounding box. */ [ helpcontext(0x1004002B) ,helpstring("Returns the collection's bounding box.") ] HRESULT CalcBoundingBox( [in, optional] VARIANT* Transform, // A transformation Matrix object. [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Clears the contents of the collection. */ [ helpcontext(0x1004002C) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear( [in, optional] VARIANT* CosmeticOnly // True to only clear cosmetics. ); /** * Clears construction lines and arcs. * * @see TCADAPI TCWClearAllConstructions function. */ [ helpcontext(0x1004002D) ,helpstring("Clears construction lines and arcs.") ,restricted, hidden ] HRESULT ClearConstruction( ); /** * Copies the contents of the collection to the Clipboard. */ [ helpcontext(0x1004002E) ,helpstring("Copies the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Copy( ); /** * Cuts the contents of the collection to the Clipboard. */ [ helpcontext(0x1004002F) ,helpstring("Cuts the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Cut( ); /** * Draws all the Graphic objects in the collection. */ [ helpcontext(0x10040030) ,helpstring("Draws all the Graphic objects in the collection.") ] HRESULT Draw( [in] VARIANT* View // If supplied, the View object to draw on. ); /** * Removes an item from the collection. */ [ helpcontext(0x10040031) ,helpstring("Removes an item from the collection.") ] HRESULT Remove( [in] VARIANT* Index, // The index of item to be removed. [out, retval] IGraphic** prop // The Graphic object that was removed. ); /** * Selects all the Graphic object's in the collection. * * @see TCADAPI TCWSelectAll function. */ [ helpcontext(0x10040032) ,helpstring("Selects all the Graphic object's in the collection.") ] HRESULT Select( ); /** * Unselects all the Graphic object's in the collection. * * @see TCADAPI TCWDeselectAll function. */ [ helpcontext(0x10040033) ,helpstring("Unselects all the Graphic object's in the collection.") ] HRESULT Unselect( ); //////////////////////////// AddXXXMethods \\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionAngularLine function */ [ helpcontext(0x10040034) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionAngularLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionHorizontalLine function */ [ helpcontext(0x10040035) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionHorizontalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionVerticalLine function */ [ helpcontext(0x10040036) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionVerticalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionCenterAndPointCircle function */ [ helpcontext(0x10040037) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionCenterAndPointCircle( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the perimeter point. [in] double Y1, // Y coordinate of the perimeter point. [in] double Z1, // Z coordinate of the perimeter point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionDoublePointCircle function */ [ helpcontext(0x10040038) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionDoublePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionTriplePointCircle function */ [ helpcontext(0x10040039) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionTriplePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a dot marker to the collection. * * @see TCADAPI TCWDot function */ [ helpcontext(0x1004003A) ,helpstring("Creates and adds a dot marker to the collection.") ] HRESULT AddDot( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a star to the collection. * * @see TCADAPI TCWStar function */ [ helpcontext(0x1004003B) ,helpstring("Creates and adds a star marker to the collection.") ] HRESULT AddStar( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a square marker to the collection. * * @see TCADAPI TCWSquare function */ [ helpcontext(0x1004003C) ,helpstring("Creates and adds a square marker to the collection.") ] HRESULT AddSquare( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cross marker to the collection. * * @see TCADAPI TCWCross function */ [ helpcontext(0x1004003D) ,helpstring("Creates and adds a cross marker to the collection.") ] HRESULT AddCross( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle marker to the collection. * * @see TCADAPI TCWCircle function */ [ helpcontext(0x1004003E) ,helpstring("Creates and adds a circle marker to the collection.") ] HRESULT AddCircle( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineSingle function */ [ helpcontext(0x1004003F) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineSingle( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in] double X1, // X coordinate of the second endpoint. [in] double Y1, // Y coordinate of the second endpoint. [in] double Z1, // Z coordinate of the second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a regular polygon to the collection. * * @see TCADAPI TCWLinePolygon function */ [ helpcontext(0x10040040) ,helpstring("Creates and adds a regular polygon to the collection.") ] HRESULT AddLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long nsides, // number of sides. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rectangle to the collection. * * @see TCADAPI TCWLineRectangle function */ [ helpcontext(0x10040041) ,helpstring("Creates and adds a rectangle to the collection.") ] HRESULT AddLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated rectangle to the collection. * * @see TCADAPI TCWLineRotatedRectangle function */ [ helpcontext(0x10040042) ,helpstring("Creates and adds a rotated rectangle to the collection.") ] HRESULT AddLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Height, // Height of the rectangle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLinePerpendicular function */ [ helpcontext(0x10040043) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineParallel function */ [ helpcontext(0x10040044) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWLineMultiline function */ [ helpcontext(0x10040045) ,helpstring("Creates and adds a multiple segment line to the collection.") ] HRESULT AddLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWLineIrregularPolygon function */ [ helpcontext(0x10040046) ,helpstring("Creates and adds an irregular polygon to the collection.") ] HRESULT AddLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a bezier curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveBezier function */ [ helpcontext(0x10040047) ,helpstring("Creates and adds a bezier curve to the collection.") ] HRESULT AddCurveBezier( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cubic spline curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveSpline function */ [ helpcontext(0x10040048) ,helpstring("Creates and adds a cubic spline curve to the collection.") ] HRESULT AddCurveSpline( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleCenterAndPoint function */ [ helpcontext(0x10040049) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleCenterAndPoint( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the cneter point. [in] double X1, // X coordinate of the radius point. [in] double Y1, // Y coordinate of the radius point. [in] double Z1, // Z coordinate of the radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleDoublePoint function */ [ helpcontext(0x1004004A) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleDoublePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleTriplePoint function */ [ helpcontext(0x1004004B) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleTriplePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipse function */ [ helpcontext(0x1004004C) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipse( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseRotatedEllipse function */ [ helpcontext(0x1004004D) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseRotatedEllipse( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseFixedRatio function */ [ helpcontext(0x1004004E) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcCenterAndPoint function */ [ helpcontext(0x1004004F) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcCenterAndPoint( [in] double X0, // X coordinate of arc's center point. [in] double Y0, // Y coordinate of arc's center point. [in] double Z0, // Z coordinate of arc's center point. [in] double X1, // X coordinate of arc's radius point. [in] double Y1, // Y coordinate of arc's radius point. [in] double Z1, // Z coordinate of arc's radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcDoublePoint function */ [ helpcontext(0x10040050) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcDoublePoint( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in] double X1, // X coordinate of second endpoint. [in] double Y1, // Y coordinate of second endpont. [in] double Z1, // Z coordinate of second endpoint. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcTriplePoint function */ [ helpcontext(0x10040051) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcTriplePoint( [in] double X0, // X coordinate of starting point. [in] double Y0, // Y coordinate of starting point. [in] double Z0, // Z coordinate of starting point. [in] double X1, // X coordinate of point on perimeter. [in] double Y1, // Y coordinate of point on perimeter. [in] double Z1, // Z coordinate of point on perimeter. [in] double X2, // X coordinate of ending point. [in] double Y2, // Y coordinate of ending point. [in] double Z2, // Z coordinate of ending point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcElliptical function */ [ helpcontext(0x10040052) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcElliptical( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcRotatedElliptical function */ [ helpcontext(0x10040053) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcRotatedElliptical( [in] double X0, // X coordinate of elliptical arc's center point. [in] double Y0, // Y coordinate of elliptical arc's center point. [in] double Z0, // Z coordinate of elliptical arc's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcEllipticalFixedRatio function */ [ helpcontext(0x10040054) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcEllipticalFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a text Graphic object to the collection. * * @see TCADAPI TCWText function */ [ helpcontext(0x10040055) ,helpstring("Creates and adds a text Graphic object to the collection.") ] HRESULT AddText( [in] BSTR Text, // The text string. [in] double X0, // X coordinate of text's starting point. [in] double Y0, // Y coordinate of text's starting point. [in] double Z0, // Z coordinate of text's starting point. [in] double Height, // Height of text object. [in, optional] VARIANT* Angle, // Rotation angle of text in radians. [in, optional] VARIANT* Width, // Width of text object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////// Blocks Groups and Hatches \\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a block in the Drawing object from the Graphic objects in the collection. * * @see TCADAPI TCWBlockCreate function */ [ helpcontext(0x10040056) ,helpstring("Creates a block in the Drawing object from the Graphic objects in the collection.") ] HRESULT CreateBlock( [in, optional] BSTR Name, // Name for the new block. [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [in, optional] VARIANT* CopyGraphics, // True to make the group using copies of the Graphic objects in the Graphics collection. [in, optional] VARIANT* InsertBlock, // True to insert the new block in the Drawing object. [in, out, optional] VARIANT* Insert, // The Insert Graphic object if InsertBlock was true [out, retval] Block** prop // The newly created block. ); /** * Adds a block insertion to the collection. * * @see TCADAPI TCWBlockInsert function */ [ helpcontext(0x10040057) ,helpstring("Adds a block insertion to the collection.") ] HRESULT AddBlockInsertion( [in] VARIANT* Block, // BlockObj or index of the block. [in, optional] VARIANT* X0, // X coordinate of the block insertion point. [in, optional] VARIANT* Y0, // Y coordinate of the block insertion point. [in, optional] VARIANT* Z0, // Z coordinate of the block insertion point. [in, optional] VARIANT* XScale, // X scale factor. [in, optional] VARIANT* YScale, // Y scale factor. [in, optional] VARIANT* ZScale, // Z scale factor. [in, optional] VARIANT* Angle, // Rotation angle of block insertion in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds a group to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWGroupCreate function */ [ helpcontext(0x10040058) ,helpstring("Adds a group to the collection from the Graphic objects in the collection.") ] HRESULT AddGroup( [in] VARIANT* Name, // Name for the new group. [in, optional] VARIANT* Copy, // True to make the group using copies of the Graphic objects in the Graphics collection. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Explodes groups and block insertions in the collection. * * @see TCADAPI TCWExplode function */ [ helpcontext(0x10040059) ,helpstring("Explodes groups and block insertions in the collection.") ,restricted, hidden ] HRESULT Explode( [out, retval] GraphicSet** prop // The exploded Graphic objects. ); /////////////////////////// Copy Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1004005A) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAbsolute( [in] double X, // X coordinate to copy to. [in] double Y, // Y coordinate to copy to. [in] double Z, // Z coordinate to copy to. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1004005B) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified offset is for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1004005C) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAngle( [in] double Length, // Length of copy. [in] double Angle, // Angle of copy in radians. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified length is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1004005D) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAbsolute( [in] double X0, // X coordinate of center of arc. [in] double Y0, // Y coordinate of center of arc. [in] double Z0, // Z coordinate of center of arc. [in] double X1, // X coordinate of point on arc. [in] double Y1, // Y coordinate of point on arc. [in] double Z1, // Z coordinate of point on arc. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1004005E) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAngle( [in] double X, // X coordinate of center of arc. [in] double Y, // Y coordinate of center of arc. [in] double Z, // Z coordinate of center of arc. [in] double Angle, // Angle between copies or for last copy. [in] double RotationAngle, // Angle to rotate each copy. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified angle is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x1004005F) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyAbsolute( [in] double X, // Coordinate defining row and column spacing. [in] double Y, // Coordinate defining row and column spacing. [in] double Z, // Coordinate defining row and column spacing. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x10040060) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyRelative( [in] double U, // Column offset. [in] double V, // Row offset. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified offsets are for last copy. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Mirrors the Graphic objects in the collection about a line. */ [ helpcontext(0x10040061) ,helpstring("Mirrors the Graphic objects in the collection about a line.") ,restricted, hidden ] HRESULT MirrorCopyLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Mirrors the Graphic objects in the collection about an angle. */ [ helpcontext(0x10040062) ,helpstring("Mirrors the Graphic objects in the collection about an angle.") ,restricted, hidden ] HRESULT MirrorCopyAngle( [in] double X, // X coordinate to mirror to. [in] double Y, // Y coordinate to mirror to. [in] double Z, // Z coordinate to mirror to. [in] double Angle, // Angle of mirror. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Scales the Graphic objects in the collection. * * @see TCADAPI TCWSelectionScale function. */ [ helpcontext(0x10040063) ,helpstring("Scales the Graphic objects in the collection.") ] HRESULT Scale( [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10040064) ,helpstring("Rotates the Graphic objects in the collection.") ] HRESULT RotateAxis( [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* XAxis, // X coordinate of axis direction. [in, optional] VARIANT* YAxis, // Y coordinate of axis direction. [in, optional] VARIANT* ZAxis, // Z coordinate of axis direction. [in, optional] VARIANT* X, // X coordinate of the rotation center. [in, optional] VARIANT* Y, // Y coordinate of the rotation center. [in, optional] VARIANT* Z, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10040065) ,helpstring("Rotates the Graphic objects in the collection.") ] HRESULT RotateAbsolute( [in] VARIANT* XTo, // X coordinate of the point to rotate to. [in] VARIANT* YTo, // Y coordinate of the point to rotate to. [in] VARIANT* ZTo, // Z coordinate of the point to rotate to. [in] VARIANT* XFrom, // X coordinate of the point to rotate from. [in] VARIANT* YFrom, // Y coordinate of the point to rotate from. [in] VARIANT* ZFrom, // Z coordinate of the point to rotate from. [in, optional] VARIANT* XRef, // X coordinate of the rotation center. [in, optional] VARIANT* YRef, // Y coordinate of the rotation center. [in, optional] VARIANT* ZRef, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection to a new location. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10040066) ,helpstring("Moves the Graphic objects in the collection to a new location.") ] HRESULT MoveAbsolute( [in] double X, // X coordinate to move to. [in] double Y, // Y coordinate to move to. [in] double Z, // Z coordinate to move to. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection by a specified offset. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10040067) ,helpstring("Moves the Graphic objects in the collection by a specified offset.") ] HRESULT MoveRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Transforms the Graphic objects in the collection. */ [ helpcontext(0x10040068) ,helpstring("Transforms the Graphic object.") ] HRESULT Transform( [in] IMatrix* Transform // The matrix to perform transformation. ); ////////////////////// Miscellaneous Edit Methods \\\\\\\\\\\\\\\\\\\\ /** * Aligns the Graphic objects in the collection. * * @see TCADAPI TCWAlignXXX functions. */ [ helpcontext(0x10040069) ,helpstring("Aligns the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Align( [in] ImsiAlignType AlignType // Bottom, middle, etc. ); /** * Aligns the Graphic objects in the collection along a line. */ [ helpcontext(0x1004006A) ,helpstring("Aligns the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT AlignAlongLine( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1 // Z coordinate of the second point. ); /** * Returns the index within the Graphics collection of the specified graphic handle. * Private. */ [ restricted ,helpcontext(0x1004006B) ,helpstring("Private. Returns the index within the Graphics collection of the specified graphic handle.") ] HRESULT _FindIndex( [in] long g, // The graphic handle. [out, retval] long* prop // The index. ); /** * Returns the Graphic objects in the collection that match a query string. * * @see TCADAPI TCWSelectByQuery function. */ [ helpcontext(0x1004006C) ,helpstring("Returns the Graphic objects in the collection that match a query string.") ] HRESULT QuerySet( [in] BSTR Query, // The query string. [out, retval] GraphicSet** prop // The matching Graphic objects, as a GraphicSet__Object. ); /** * Creates and adds a group of polylines or polygons to the collection. */ [ helpcontext(0x1004006D) ,helpstring("Creates and adds a group of polylines or polygons to the collection.") ] HRESULT AddPolys( [in] ImsiPolyType Type, // Type of poly(s) to be added. [in] VARIANT* Coords, // Array of (X, Y, Z) poly coordinates. [out, retval] GraphicSet** NewPolys // The newly created Graphic objects. ); /** * Generates a bounding polygon array to use in drag operations. * * @see View::DragOutline */ [ helpcontext(0x1004006E) ,helpstring("Generates a bounding polygon array to use in drag operations.") ] HRESULT CreateDragOutline( [in, out] VARIANT* Coords // Array of (X, Y, Z) polygon coordinates. ); /** * Creates and adds a bunch of polylines to the collection. * The returned Graphics object contains a set with freshly created * polygons. The user can set properties, etc. */ [ helpcontext(0x1004006F) ,helpstring("Creates and adds a bunch of polylines to the collection.") ] HRESULT AddPolylines( [in] long NumberOfPolylines, // number of polylines to create [in] VARIANT* Coords, // SafeArray of triplets of coordinates. [in] IMSI_BOOL closed, // whether each polyline is closed [out, retval] GraphicSet** NewPolys // The newly created set of Graphic objects. ); /** * Finds the Graphic object in the collection with the given ID. */ [ helpcontext(0x10040070) ,helpstring("Finds the Graphic object in the collection with the given ID.") ] HRESULT GraphicFromID( [in] long ID, // ID of Graphic object. [out, retval] IGraphic** prop // The Graphic object. ); /** * Creates and adds an attribute definition Graphic object to the collection. */ [ helpcontext(0x10040071) ,helpstring("Creates and adds an attribute definition Graphic object to the collection.") ] HRESULT AddAttributeDefinition( [in] BSTR Tag, // The text string for the attribute definition tag. [in] double X0, // X coordinate of attdef's starting point. [in] double Y0, // Y coordinate of attdef's starting point. [in] double Z0, // Z coordinate of attdef's starting point. [in] double Height, // Height of attdef object. [in, optional] VARIANT* Angle, // Rotation angle of attdef in radians. [in, optional] VARIANT* Width, // Width of attdef object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [in, optional] VARIANT* AttFlags, // ImsiAttFlag values. [in, optional] VARIANT* Default, // Default value of attribute. [in, optional] VARIANT* Prompt, // Prompt for attribute. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds a Region to the collection from the Graphic objects in the collection. * */ [ helpcontext(0x10040072) ,helpstring("Adds a Region to the collection from the Graphic objects in the collection.") ] HRESULT AddRegion( [in, optional] VARIANT* pvarName ,[in, optional] VARIANT* pvarCopy ,[out, retval] IGraphic** prop // The newly GraphicObject. ); }; /** * A layer in a TurboCAD drawing. */ [ object ,uuid(6A481115-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10050000) ,helpstring("A TurboCAD layer.") ] interface Layer : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10050001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10050002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10050003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10050004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IGraphic** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10050005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10050006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ifndef METHOD_OVERFLOW_BUG /** * Applies a Style object to the contents of the collection. */ [ helpcontext(0x10050007) ,helpstring("Applies a Style object to the contents of the collection.") ,restricted, hidden ] HRESULT ApplyStyle( [in] Style* StyleToApply // The Style object to apply. ); /** * Checks the spelling of all the text Graphic object's in the collection. */ [ helpcontext(0x10050008) ,helpstring("Checks the spelling of all the text Graphic object's in the collection.") ,restricted, hidden ] HRESULT CheckSpelling( [in, optional] VARIANT* CustomDictionary, // The name of a custom dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* AlwaysSuggest, // True to suggest corrections. [in, optional] VARIANT* CustomDictionary2, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary10 // The name of a custom dictionary. ); /** * Adds a hatch pattern to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWCreateHatch function */ [ helpcontext(0x10050009) ,helpstring("Adds a hatch pattern to the collection from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT AddHatch( [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates a Style object based on the contents of the collection. */ [ helpcontext(0x1005000A) ,helpstring("Creates a Style object based on the contents of the collection.") ,restricted, hidden ] HRESULT CreateStyle( [in] Style* BasedOn, // The style to base the new Style object on. [out, retval] Style** prop // The newly created Style object. ); /** * Creates and adds an OLE object to the collection. */ [ helpcontext(0x1005000B) ,helpstring("Creates and adds an OLE object to the collection.") ,restricted, hidden ] HRESULT AddObject( [in, optional] VARIANT* ClassType, // Name of data format to paste. [in, optional] VARIANT* FileName, // Name of file to create object or link from. [in, optional] VARIANT* LinkToFile, // True if object is a link. [in, optional] VARIANT* DisplayAsIcon, // True to display as icon. [in, optional] VARIANT* IconFileName, // File containing icon. [in, optional] VARIANT* IconIndex, // Index of icon to use if displaying as icon. [in, optional] VARIANT* IconLabel, // Label to display if displaying as icon. [in, optional] VARIANT* X, // X coordinate of center of object. [in, optional] VARIANT* Y, // Y coordinate of center of object. [in, optional] VARIANT* Z, // Z coordinate of center of object. [in, optional] VARIANT* Width, // Width of object. [in, optional] VARIANT* Height, // Height of object. [in, optional] VARIANT* Anchor, // TODO: What's this for? [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1005000C) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanArcPoint( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for line endpoint. [in] double Y0, // Y coordinate on arc for line endpoint. [in] double Z0, // Z coordinate on arc for line endpoint. [in] double length, // length of tangent line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1005000D) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanToArc( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for the line's first endpoint. [in] double Y0, // Y coordinate on arc for the line's first endpoint. [in] double Z0, // Z coordinate on arc for the line's first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1005000E) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanFromArc( [in] IGraphic* TangentFrom, // Arc to draw line tangent from. [in] double X0, // X coordinate on arc for the line's second endpoint. [in] double Y0, // Y coordinate on arc for the line's second endpoint. [in] double Z0, // Z coordinate on arc for the line's second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1005000F) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTan2Arcs( [in] IGraphic* Arc1, // First arc. [in] IGraphic* Arc2, // Second arc. [in] IMSI_BOOL CounterClockwise, // True if tangent direction is counterclockwise. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multi segment leader (callout) line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10050010) ,helpstring("Creates and adds a multi segment leader (callout) line to the collection.") ,restricted, hidden ] HRESULT AddDimensionLeader( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in, optional] BSTR Text, // The text for the leader. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a baseline dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10050011) ,helpstring("Creates and adds a WHATEVER to the collection.") ,restricted, hidden ] HRESULT AddDimensionBaseline( [in] IGraphic* AddTo, // dimension line to add baseline dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a continuous dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10050012) ,helpstring("Creates and adds a continuous dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionContinuous( [in] IGraphic* AddTo, // dimension line to add continuous dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single segment double line to the collection. * * @see TCADAPI TCWDoubleLineSingle function */ [ helpcontext(0x10050013) ,helpstring("Creates and adds a single segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineSingle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double regular polygon to the collection. * * @see TCADAPI TCWDoubleLinePolygon function */ [ helpcontext(0x10050014) ,helpstring("Creates and adds a double regular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long Sides, // Number of sides. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rectangle to the collection. * * @see TCADAPI TCWDoubleLineRectangle function */ [ helpcontext(0x10050015) ,helpstring("Creates and adds a double rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rotated rectangle to the collection. * * @see TCADAPI TCWDoubleLineRotatedRectangle function */ [ helpcontext(0x10050016) ,helpstring("Creates and adds a double rotated rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLinePerpendicular function */ [ helpcontext(0x10050017) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment double line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineMultiline function */ [ helpcontext(0x10050018) ,helpstring("Creates and adds a multiple segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineIrregularPolygon function */ [ helpcontext(0x10050019) ,helpstring("Creates and adds a double irregular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLineParallel function */ [ helpcontext(0x1005001A) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1005001B) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1005001C) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToLine( [in] IGraphic* TangentTo, // Line to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1005001D) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTan3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1005001E) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing arc. [in] double Y1, // Y coordinate of point on existing arc. [in] double Z1, // Z coordinate of ponit on existing arc. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1005001F) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToLine( [in] IGraphic* TangentTo, // Line to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing line. [in] double Y1, // Y coordinate of point on existing line. [in] double Z1, // Z coordinate of ponit on existing line. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x10050020) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanTo3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a horizontal dimension to the collection. * * @see TCADAPI TCWDimensionHorizontal, TCWDimensionHorizontalEntity functions */ [ helpcontext(0x10050021) ,helpstring("Creates and adds a horizontal dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionHorizontal( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a vertical dimension to the collection. * * @see TCADAPI TCWDimensionVertical, TCWDimensionVerticalEntity functions */ [ helpcontext(0x10050022) ,helpstring("Creates and adds a vertical dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionVertical( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a parallel dimension to the collection. * * @see TCADAPI TCWDimensionParallel, TCWDimensionParallelEntity functions */ [ helpcontext(0x10050023) ,helpstring("Creates and adds a parallel dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionParallel( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated dimension to the collection. */ [ helpcontext(0x10050024) ,helpstring("Creates and adds a rotated dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRotated( [in] double X0, // X coordinate of first endpoint defining angle and direction. [in] double Y0, // Y coordinate of first endpoint defining angle and direction. [in] double Z0, // Z coordinate of first endpoint defining angle and direction. [in] double X1, // X coordinate of second endpoint defining angle and direction. [in] double Y1, // Y coordinate of second endpoint defining angle and direction. [in] double Z1, // Z coordinate of second endpoint defining angle and direction. [in] double X2, // X coordinate of first extension line. [in] double Y2, // Y coordinate of first extension line. [in] double Z2, // Z coordinate of first extension line. [in] double X3, // X coordinate of second extension line. [in] double Y3, // Y coordinate of second extension line. [in] double Z3, // Z coordinate of second extension line. [in] double X4, // X coordinate of dimension. [in] double Y4, // Y coordinate of dimension. [in] double Z4, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a datum dimension to the collection. */ [ helpcontext(0x10050025) ,helpstring("Creates and adds a datum dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDatum( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an angular dimension to the collection. */ [ helpcontext(0x10050026) ,helpstring("Creates and adds an angular dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionAngular( [in] IGraphic* Line1, // First graphic. [in] IGraphic* Line2, // Second graphic. [in] double X0, // X coordinate of dimension. [in] double Y0, // Y coordinate of dimension. [in] double Z0, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a radial dimension to the collection. */ [ helpcontext(0x10050027) ,helpstring("Creates and adds a radial dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRadius( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a diameter dimension to the collection. */ [ helpcontext(0x10050028) ,helpstring("Creates and adds a diameter dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDiameter( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); #endif //METHOD_OVERFLOW_BUG /** * Creates and adds a new Graphic object to the collection. */ [ helpcontext(0x10050029) ,helpstring("Creates and adds a new Graphic object to the collection.") ] HRESULT Add( [in, optional] VARIANT* GraphicType, // The type of the Graphic object. [in, optional] VARIANT* RegenMethod, // A RegenMethod object or index. [in, optional] VARIANT* Inherit, // True if the new Graphic object will inherit the properties of its parent. [in, optional] VARIANT* Style, // Not used in current implementation. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After, // The Graphic object or index that will precede the added Graphic object. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds an existing Graphic object to the collection. */ [ helpcontext(0x1005002A) ,helpstring("Adds an existing Graphic object to the collection.") ] HRESULT AddGraphic( [in] IGraphic* Graphic, // The Graphic object to add. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After // The Graphic object or index that will precede the added Graphic object. ); /** * Returns the collection's bounding box. */ [ helpcontext(0x1005002B) ,helpstring("Returns the collection's bounding box.") ,restricted, hidden ] HRESULT CalcBoundingBox( [in, optional] VARIANT* Transform, // A transformation Matrix object. [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Clears the contents of the collection. */ [ helpcontext(0x1005002C) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear( [in, optional] VARIANT* CosmeticOnly // True to only clear cosmetics. ); /** * Clears construction lines and arcs. * * @see TCADAPI TCWClearAllConstructions function. */ [ helpcontext(0x1005002D) ,helpstring("Clears construction lines and arcs.") ,restricted, hidden ] HRESULT ClearConstruction( ); /** * Copies the contents of the collection to the Clipboard. */ [ helpcontext(0x1005002E) ,helpstring("Copies the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Copy( ); /** * Cuts the contents of the collection to the Clipboard. */ [ helpcontext(0x1005002F) ,helpstring("Cuts the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Cut( ); /** * Draws all the Graphic objects in the collection. */ [ helpcontext(0x10050030) ,helpstring("Draws all the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Draw( [in] VARIANT* View // If supplied, the View object to draw on. ); /** * Removes an item from the collection. */ [ helpcontext(0x10050031) ,helpstring("Removes an item from the collection.") ] HRESULT Remove( [in] VARIANT* Index, // The index of item to be removed. [out, retval] IGraphic** prop // The Graphic object that was removed. ); /** * Selects all the Graphic object's in the collection. * * @see TCADAPI TCWSelectAll function. */ [ helpcontext(0x10050032) ,helpstring("Selects all the Graphic object's in the collection.") ] HRESULT Select( ); /** * Unselects all the Graphic object's in the collection. * * @see TCADAPI TCWDeselectAll function. */ [ helpcontext(0x10050033) ,helpstring("Unselects all the Graphic object's in the collection.") ] HRESULT Unselect( ); //////////////////////////// AddXXXMethods \\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionAngularLine function */ [ helpcontext(0x10050034) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionAngularLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionHorizontalLine function */ [ helpcontext(0x10050035) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionHorizontalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionVerticalLine function */ [ helpcontext(0x10050036) ,helpstring("Creates and adds a construction line to the collection.") ] HRESULT AddConstructionVerticalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionCenterAndPointCircle function */ [ helpcontext(0x10050037) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionCenterAndPointCircle( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the perimeter point. [in] double Y1, // Y coordinate of the perimeter point. [in] double Z1, // Z coordinate of the perimeter point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionDoublePointCircle function */ [ helpcontext(0x10050038) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionDoublePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionTriplePointCircle function */ [ helpcontext(0x10050039) ,helpstring("Creates and adds a construction circle to the collection.") ] HRESULT AddConstructionTriplePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a dot marker to the collection. * * @see TCADAPI TCWDot function */ [ helpcontext(0x1005003A) ,helpstring("Creates and adds a dot marker to the collection.") ] HRESULT AddDot( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a star to the collection. * * @see TCADAPI TCWStar function */ [ helpcontext(0x1005003B) ,helpstring("Creates and adds a star marker to the collection.") ] HRESULT AddStar( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a square marker to the collection. * * @see TCADAPI TCWSquare function */ [ helpcontext(0x1005003C) ,helpstring("Creates and adds a square marker to the collection.") ] HRESULT AddSquare( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cross marker to the collection. * * @see TCADAPI TCWCross function */ [ helpcontext(0x1005003D) ,helpstring("Creates and adds a cross marker to the collection.") ] HRESULT AddCross( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle marker to the collection. * * @see TCADAPI TCWCircle function */ [ helpcontext(0x1005003E) ,helpstring("Creates and adds a circle marker to the collection.") ] HRESULT AddCircle( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineSingle function */ [ helpcontext(0x1005003F) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineSingle( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in] double X1, // X coordinate of the second endpoint. [in] double Y1, // Y coordinate of the second endpoint. [in] double Z1, // Z coordinate of the second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a regular polygon to the collection. * * @see TCADAPI TCWLinePolygon function */ [ helpcontext(0x10050040) ,helpstring("Creates and adds a regular polygon to the collection.") ] HRESULT AddLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long nsides, // number of sides. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rectangle to the collection. * * @see TCADAPI TCWLineRectangle function */ [ helpcontext(0x10050041) ,helpstring("Creates and adds a rectangle to the collection.") ] HRESULT AddLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated rectangle to the collection. * * @see TCADAPI TCWLineRotatedRectangle function */ [ helpcontext(0x10050042) ,helpstring("Creates and adds a rotated rectangle to the collection.") ] HRESULT AddLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Height, // Height of the rectangle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLinePerpendicular function */ [ helpcontext(0x10050043) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineParallel function */ [ helpcontext(0x10050044) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWLineMultiline function */ [ helpcontext(0x10050045) ,helpstring("Creates and adds a multiple segment line to the collection.") ] HRESULT AddLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWLineIrregularPolygon function */ [ helpcontext(0x10050046) ,helpstring("Creates and adds an irregular polygon to the collection.") ] HRESULT AddLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a bezier curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveBezier function */ [ helpcontext(0x10050047) ,helpstring("Creates and adds a bezier curve to the collection.") ] HRESULT AddCurveBezier( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cubic spline curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveSpline function */ [ helpcontext(0x10050048) ,helpstring("Creates and adds a cubic spline curve to the collection.") ] HRESULT AddCurveSpline( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleCenterAndPoint function */ [ helpcontext(0x10050049) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleCenterAndPoint( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the cneter point. [in] double X1, // X coordinate of the radius point. [in] double Y1, // Y coordinate of the radius point. [in] double Z1, // Z coordinate of the radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleDoublePoint function */ [ helpcontext(0x1005004A) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleDoublePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleTriplePoint function */ [ helpcontext(0x1005004B) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleTriplePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipse function */ [ helpcontext(0x1005004C) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipse( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseRotatedEllipse function */ [ helpcontext(0x1005004D) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseRotatedEllipse( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseFixedRatio function */ [ helpcontext(0x1005004E) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcCenterAndPoint function */ [ helpcontext(0x1005004F) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcCenterAndPoint( [in] double X0, // X coordinate of arc's center point. [in] double Y0, // Y coordinate of arc's center point. [in] double Z0, // Z coordinate of arc's center point. [in] double X1, // X coordinate of arc's radius point. [in] double Y1, // Y coordinate of arc's radius point. [in] double Z1, // Z coordinate of arc's radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcDoublePoint function */ [ helpcontext(0x10050050) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcDoublePoint( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in] double X1, // X coordinate of second endpoint. [in] double Y1, // Y coordinate of second endpont. [in] double Z1, // Z coordinate of second endpoint. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcTriplePoint function */ [ helpcontext(0x10050051) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcTriplePoint( [in] double X0, // X coordinate of starting point. [in] double Y0, // Y coordinate of starting point. [in] double Z0, // Z coordinate of starting point. [in] double X1, // X coordinate of point on perimeter. [in] double Y1, // Y coordinate of point on perimeter. [in] double Z1, // Z coordinate of point on perimeter. [in] double X2, // X coordinate of ending point. [in] double Y2, // Y coordinate of ending point. [in] double Z2, // Z coordinate of ending point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcElliptical function */ [ helpcontext(0x10050052) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcElliptical( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcRotatedElliptical function */ [ helpcontext(0x10050053) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcRotatedElliptical( [in] double X0, // X coordinate of elliptical arc's center point. [in] double Y0, // Y coordinate of elliptical arc's center point. [in] double Z0, // Z coordinate of elliptical arc's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcEllipticalFixedRatio function */ [ helpcontext(0x10050054) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcEllipticalFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a text Graphic object to the collection. * * @see TCADAPI TCWText function */ [ helpcontext(0x10050055) ,helpstring("Creates and adds a text Graphic object to the collection.") ] HRESULT AddText( [in] BSTR Text, // The text string. [in] double X0, // X coordinate of text's starting point. [in] double Y0, // Y coordinate of text's starting point. [in] double Z0, // Z coordinate of text's starting point. [in] double Height, // Height of text object. [in, optional] VARIANT* Angle, // Rotation angle of text in radians. [in, optional] VARIANT* Width, // Width of text object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////// Blocks Groups and Hatches \\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a block in the Drawing object from the Graphic objects in the collection. * * @see TCADAPI TCWBlockCreate function */ [ helpcontext(0x10050056) ,helpstring("Creates a block in the Drawing object from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT CreateBlock( [in, optional] BSTR Name, // Name for the new block. [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [in, optional] VARIANT* CopyGraphics, // True to make the group using copies of the Graphic objects in the Graphics collection. [in, optional] VARIANT* InsertBlock, // True to insert the new block in the Drawing object. [in, out, optional] VARIANT* Insert, // The Insert Graphic object if InsertBlock was true [out, retval] Block** prop // The newly created block. ); /** * Adds a block insertion to the collection. * * @see TCADAPI TCWBlockInsert function */ [ helpcontext(0x10050057) ,helpstring("Adds a block insertion to the collection.") ,restricted, hidden ] HRESULT AddBlockInsertion( [in] VARIANT* Block, // BlockObj or index of the block. [in, optional] VARIANT* X0, // X coordinate of the block insertion point. [in, optional] VARIANT* Y0, // Y coordinate of the block insertion point. [in, optional] VARIANT* Z0, // Z coordinate of the block insertion point. [in, optional] VARIANT* XScale, // X scale factor. [in, optional] VARIANT* YScale, // Y scale factor. [in, optional] VARIANT* ZScale, // Z scale factor. [in, optional] VARIANT* Angle, // Rotation angle of block insertion in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds a group to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWGroupCreate function */ [ helpcontext(0x10050058) ,helpstring("Adds a group to the collection from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT AddGroup( [in, optional] VARIANT* Name, // Name for the new group. [in, optional] VARIANT* Copy, // True to make the group using copies of the Graphic objects in the Graphics collection. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Explodes groups and block insertions in the collection. * * @see TCADAPI TCWExplode function */ [ helpcontext(0x10050059) ,helpstring("Explodes groups and block insertions in the collection.") ,restricted, hidden ] HRESULT Explode( [out, retval] GraphicSet** prop // The exploded Graphic objects. ); /////////////////////////// Copy Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1005005A) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAbsolute( [in] double X, // X coordinate to copy to. [in] double Y, // Y coordinate to copy to. [in] double Z, // Z coordinate to copy to. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1005005B) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified offset is for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1005005C) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAngle( [in] double Length, // Length of copy. [in] double Angle, // Angle of copy in radians. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified length is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1005005D) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAbsolute( [in] double X0, // X coordinate of center of arc. [in] double Y0, // Y coordinate of center of arc. [in] double Z0, // Z coordinate of center of arc. [in] double X1, // X coordinate of point on arc. [in] double Y1, // Y coordinate of point on arc. [in] double Z1, // Z coordinate of point on arc. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1005005E) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAngle( [in] double X, // X coordinate of center of arc. [in] double Y, // Y coordinate of center of arc. [in] double Z, // Z coordinate of center of arc. [in] double Angle, // Angle between copies or for last copy. [in] double RotationAngle, // Angle to rotate each copy. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified angle is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x1005005F) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyAbsolute( [in] double X, // Coordinate defining row and column spacing. [in] double Y, // Coordinate defining row and column spacing. [in] double Z, // Coordinate defining row and column spacing. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x10050060) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyRelative( [in] double U, // Column offset. [in] double V, // Row offset. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified offsets are for last copy. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Mirrors the Graphic objects in the collection about a line. */ [ helpcontext(0x10050061) ,helpstring("Mirrors the Graphic objects in the collection about a line.") ,restricted, hidden ] HRESULT MirrorCopyLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Mirrors the Graphic objects in the collection about an angle. */ [ helpcontext(0x10050062) ,helpstring("Mirrors the Graphic objects in the collection about an angle.") ,restricted, hidden ] HRESULT MirrorCopyAngle( [in] double X, // X coordinate to mirror to. [in] double Y, // Y coordinate to mirror to. [in] double Z, // Z coordinate to mirror to. [in] double Angle, // Angle of mirror. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Scales the Graphic objects in the collection. * * @see TCADAPI TCWSelectionScale function. */ [ helpcontext(0x10050063) ,helpstring("Scales the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Scale( [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10050064) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAxis( [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* XAxis, // X coordinate of axis direction. [in, optional] VARIANT* YAxis, // Y coordinate of axis direction. [in, optional] VARIANT* ZAxis, // Z coordinate of axis direction. [in, optional] VARIANT* X, // X coordinate of the rotation center. [in, optional] VARIANT* Y, // Y coordinate of the rotation center. [in, optional] VARIANT* Z, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10050065) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAbsolute( [in] VARIANT* XTo, // X coordinate of the point to rotate to. [in] VARIANT* YTo, // Y coordinate of the point to rotate to. [in] VARIANT* ZTo, // Z coordinate of the point to rotate to. [in] VARIANT* XFrom, // X coordinate of the point to rotate from. [in] VARIANT* YFrom, // Y coordinate of the point to rotate from. [in] VARIANT* ZFrom, // Z coordinate of the point to rotate from. [in, optional] VARIANT* XRef, // X coordinate of the rotation center. [in, optional] VARIANT* YRef, // Y coordinate of the rotation center. [in, optional] VARIANT* ZRef, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection to a new location. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10050066) ,helpstring("Moves the Graphic objects in the collection to a new location.") ,restricted, hidden ] HRESULT MoveAbsolute( [in] double X, // X coordinate to move to. [in] double Y, // Y coordinate to move to. [in] double Z, // Z coordinate to move to. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection by a specified offset. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10050067) ,helpstring("Moves the Graphic objects in the collection by a specified offset.") ,restricted, hidden ] HRESULT MoveRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Transforms the Graphic objects in the collection. */ [ helpcontext(0x10050068) ,helpstring("Transforms the Graphic object.") ,restricted, hidden ] HRESULT Transform( [in] IMatrix* Transform // The matrix to perform transformation. ); ////////////////////// Miscellaneous Edit Methods \\\\\\\\\\\\\\\\\\\\ /** * Aligns the Graphic objects in the collection. * * @see TCADAPI TCWAlignXXX functions. */ [ helpcontext(0x10050069) ,helpstring("Aligns the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Align( [in] ImsiAlignType AlignType // Bottom, middle, etc. ); /** * Aligns the Graphic objects in the collection along a line. */ [ helpcontext(0x1005006A) ,helpstring("Aligns the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT AlignAlongLine( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1 // Z coordinate of the second point. ); /** * Returns the index within the Graphics collection of the specified graphic handle. * Private. */ [ restricted ,helpcontext(0x1005006B) ,helpstring("Private. Returns the index within the Graphics collection of the specified graphic handle.") ] HRESULT _FindIndex( [in] long g, // The graphic handle. [out, retval] long* prop // The index. ); /** * Returns the Graphic objects in the collection that match a query string. * * @see TCADAPI TCWSelectByQuery function. */ [ helpcontext(0x1005006C) ,helpstring("Returns the Graphic objects in the collection that match a query string.") ] HRESULT QuerySet( [in] BSTR Query, // The query string. [out, retval] GraphicSet** prop // The matching Graphic objects, as a GraphicSet__Object. ); /** * Creates and adds a group of polylines or polygons to the collection. */ [ helpcontext(0x1005006D) ,helpstring("Creates and adds a group of polylines or polygons to the collection.") ,restricted, hidden ] HRESULT AddPolys( [in] ImsiPolyType Type, // Type of poly(s) to be added. [in] VARIANT* Coords, // Array of (X, Y, Z) poly coordinates. [out, retval] GraphicSet** NewPolys // The newly created Graphic objects. ); /** * Generates a bounding polygon array to use in drag operations. * * @see View::DragOutline */ [ helpcontext(0x1005006E) ,helpstring("Generates a bounding polygon array to use in drag operations.") ,restricted, hidden ] HRESULT CreateDragOutline( [in, out] VARIANT* Coords // Array of (X, Y, Z) polygon coordinates. ); /** * Creates and adds a bunch of polylines to the collection. * The returned Graphics object contains a set with freshly created * polygons. The user can set properties, etc. */ [ helpcontext(0x1005006F) ,helpstring("Creates and adds a bunch of polylines to the collection.") ,restricted, hidden ] HRESULT AddPolylines( [in] long NumberOfPolylines, // number of polylines to create [in] VARIANT* Coords, // SafeArray of triplets of coordinates. [in] IMSI_BOOL closed, // whether each polyline is closed [out, retval] GraphicSet** NewPolys // The newly created set of Graphic objects. ); /** * Finds the Graphic object in the collection with the given ID. */ [ helpcontext(0x10050070) ,helpstring("Finds the Graphic object in the collection with the given ID.") ] HRESULT GraphicFromID( [in] long ID, // ID of Graphic object. [out, retval] IGraphic** prop // The Graphic object. ); /** * Creates and adds an attribute definition Graphic object to the collection. */ [ helpcontext(0x10050071) ,helpstring("Creates and adds an attribute definition Graphic object to the collection.") ] HRESULT AddAttributeDefinition( [in] BSTR Tag, // The text string for the attribute definition tag. [in] double X0, // X coordinate of attdef's starting point. [in] double Y0, // Y coordinate of attdef's starting point. [in] double Z0, // Z coordinate of attdef's starting point. [in] double Height, // Height of attdef object. [in, optional] VARIANT* Angle, // Rotation angle of attdef in radians. [in, optional] VARIANT* Width, // Width of attdef object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [in, optional] VARIANT* AttFlags, // ImsiAttFlag values. [in, optional] VARIANT* Default, // Default value of attribute. [in, optional] VARIANT* Prompt, // Prompt for attribute. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////////////////////////////////////////////////////////////// // Layer methods /** * Returns the Layer object's brush style. */ [ propget ,helpcontext(0x10050072) ,helpstring("Returns the Layer object's brush style.") ] HRESULT BrushStyle( [out, retval] BrushStyle** prop // The BrushStyle object. ); /** * Sets the Layer object's brush style. */ [ propput ,helpcontext(0x10050072) ,helpstring("Sets the Layer object's brush style.") ] HRESULT BrushStyle( [in] VARIANT* prop // The BrushStyle object name or object. ); /** * Returns the color for the Layer object. */ [ propget ,helpcontext(0x10050073) ,helpstring("Returns the color for the Layer object.") ] HRESULT Color( [out, retval] IMSI_COLOR* prop // The color. ); /** * Sets the color for the Layer object. */ [ propput ,helpcontext(0x10050073) ,helpstring("Sets the color for the Layer object.") ] HRESULT Color( [in] IMSI_COLOR prop // The color. ); /** * True if Graphic objects on the Layer object can be edited. */ [ propget ,helpcontext(0x10050074) ,helpstring("True if Graphic objects on the Layer object can be edited.") ] HRESULT Editable( [out, retval] IMSI_BOOL* prop // True if Graphic objects on the Layer object can be edited. ); /** * True if Graphic objects on the Layer object can be edited. */ [ propput ,helpcontext(0x10050074) ,helpstring("True if Graphic objects on the Layer object can be edited.") ] HRESULT Editable( [in] IMSI_BOOL prop // True if Graphic objects on the Layer object can be edited. ); /** * True if Graphic objects on the Layer object cannot be edited or selected. */ [ propget ,helpcontext(0x10050075) ,helpstring("True if Graphic objects on the Layer object cannot be edited or selected.") ] HRESULT Frozen( [out, retval] IMSI_BOOL* prop // True if Graphic objects on the Layer object cannot be edited or selected. ); /** * True if Graphic objects on the Layer object cannot be edited or selected. */ [ propput ,helpcontext(0x10050075) ,helpstring("True if Graphic objects on the Layer object cannot be edited or selected.") ] HRESULT Frozen( [in] IMSI_BOOL prop // True if Graphic objects on the Layer object cannot be edited or selected. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10050076) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the Layer object's LineStyle object. */ [ propget ,helpcontext(0x10050077) ,helpstring("Returns the Layer object's LineStyle object.") ] HRESULT LineStyle( [out, retval] LineStyle** prop // The LineStyle object. ); /** * Sets the Layer object's LineStyle object. */ [ propput ,helpcontext(0x10050077) ,helpstring("Sets the Layer object's LineStyle object.") ] HRESULT LineStyle( [in] VARIANT* prop // The LineStyle object name or object. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10050078) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Sets the Layer object's name. */ [ propput ,helpcontext(0x10050078) ,helpstring("Sets the Layer object's name.") ] HRESULT Name( [in] BSTR prop // The name. ); /** * Returns the Layer object's Properties collection. */ [ propget ,helpcontext(0x10050079) ,helpstring("Returns the Layer object's Properties collection.") ,restricted, hidden ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); /** * Returns the Layer object's graphic style. */ [ propget ,helpcontext(0x1005007A) ,helpstring("Returns the Layer object's graphic style.") ,restricted, hidden ] HRESULT Style( [out, retval] Style** prop // The Style object. ); /** * Sets the Layer object's graphic style. */ [ propput ,helpcontext(0x1005007A) ,helpstring("Sets the Layer object's graphic style.") ,restricted, hidden ] HRESULT Style( [in] VARIANT* prop // The Style object name or object. ); /** * True if Graphic objects on the Layer object can be displayed. */ [ propget ,helpcontext(0x1005007B) ,helpstring("True if Graphic objects on the Layer object can be displayed.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if Graphic objects on the Layer object can be displayed. ); /** * True if Graphic objects on the Layer object can be displayed. */ [ propput ,helpcontext(0x1005007B) ,helpstring("True if Graphic objects on the Layer object can be displayed.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if Graphic objects on the Layer object can be displayed. ); /** * Returns the Layer object's redraw order. */ [ propget ,helpcontext(0x1005007C) ,helpstring("Returns the Layer object's redraw order.") ] HRESULT ZOrder( [out, retval] long* prop // The redraw order. ); /** * Sets the Layer object's redraw order. */ [ propput ,helpcontext(0x1005007C) ,helpstring("Sets the Layer object's redraw order.") ] HRESULT ZOrder( [in] long prop // The redraw order. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x1005007D) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x1005007E) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x1005007F) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [in] BSTR Name, // The name for the new Layer object. [out, retval] Layer** prop // The duplicated Layer object. ); ////////////////////////////////// v9 properties \\\\\\\\\\\\\\\\\\\\\\\\/ /** * Returns the Layer line width value. */ [ propget ,helpcontext(0x1005007C) ,helpstring("Returns the Layer line width value.") ] HRESULT Width( [out, retval] double* prop // Get layer line width. ); /** * Sets the Layer line width value. */ [ propput ,helpcontext(0x1005007C) ,helpstring("Sets the Layer line width value.") ] HRESULT Width( [in] double prop // Set layer line width. ); /** * Returns the Layer print style. */ [ propget ,helpcontext(0x1005007C) ,helpstring("Returns the Layer print style.") ] HRESULT PrintStyle( [out, retval] VARIANT* prop // Get layer line width. ); /** * Sets the Layer line width value. */ [ propput ,helpcontext(0x1005007C) ,helpstring("Sets the Layer print style.") ] HRESULT PrintStyle( [in] VARIANT* prop // Set layer width. ); /** * Adds a Region to the collection from the Graphic objects in the collection. * */ [ helpcontext(0x10050058) ,helpstring("Adds a Region to the collection from the Graphic objects in the collection.") ,hidden, restricted ] HRESULT AddRegion( [in, optional] VARIANT* pvarName ,[in, optional] VARIANT* pvarCopy ,[out, retval] IGraphic** prop // The newly GraphicObject. ); }; /** * The collection of Graphic objects that represents the selection of a Drawing object. */ [ object ,uuid(6A48110B-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10060000) ,helpstring("The selection object.") ] interface Selection : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10060001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10060002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10060003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10060004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IGraphic** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10060005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10060006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ifndef METHOD_OVERFLOW_BUG /** * Applies a Style object to the contents of the collection. */ [ helpcontext(0x10060007) ,helpstring("Applies a Style object to the contents of the collection.") ,restricted, hidden ] HRESULT ApplyStyle( [in] Style* StyleToApply // The Style object to apply. ); /** * Checks the spelling of all the text Graphic object's in the collection. */ [ helpcontext(0x10060008) ,helpstring("Checks the spelling of all the text Graphic object's in the collection.") ,restricted, hidden ] HRESULT CheckSpelling( [in, optional] VARIANT* CustomDictionary, // The name of a custom dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* AlwaysSuggest, // True to suggest corrections. [in, optional] VARIANT* CustomDictionary2, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary10 // The name of a custom dictionary. ); /** * Adds a hatch pattern to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWCreateHatch function */ [ helpcontext(0x10060009) ,helpstring("Adds a hatch pattern to the collection from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT AddHatch( [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates a Style object based on the contents of the collection. */ [ helpcontext(0x1006000A) ,helpstring("Creates a Style object based on the contents of the collection.") ,restricted, hidden ] HRESULT CreateStyle( [in] Style* BasedOn, // The style to base the new Style object on. [out, retval] Style** prop // The newly created Style object. ); /** * Creates and adds an OLE object to the collection. */ [ helpcontext(0x1006000B) ,helpstring("Creates and adds an OLE object to the collection.") ,restricted, hidden ] HRESULT AddObject( [in, optional] VARIANT* ClassType, // Name of data format to paste. [in, optional] VARIANT* FileName, // Name of file to create object or link from. [in, optional] VARIANT* LinkToFile, // True if object is a link. [in, optional] VARIANT* DisplayAsIcon, // True to display as icon. [in, optional] VARIANT* IconFileName, // File containing icon. [in, optional] VARIANT* IconIndex, // Index of icon to use if displaying as icon. [in, optional] VARIANT* IconLabel, // Label to display if displaying as icon. [in, optional] VARIANT* X, // X coordinate of center of object. [in, optional] VARIANT* Y, // Y coordinate of center of object. [in, optional] VARIANT* Z, // Z coordinate of center of object. [in, optional] VARIANT* Width, // Width of object. [in, optional] VARIANT* Height, // Height of object. [in, optional] VARIANT* Anchor, // TODO: What's this for? [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1006000C) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanArcPoint( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for line endpoint. [in] double Y0, // Y coordinate on arc for line endpoint. [in] double Z0, // Z coordinate on arc for line endpoint. [in] double length, // length of tangent line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1006000D) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanToArc( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for the line's first endpoint. [in] double Y0, // Y coordinate on arc for the line's first endpoint. [in] double Z0, // Z coordinate on arc for the line's first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1006000E) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanFromArc( [in] IGraphic* TangentFrom, // Arc to draw line tangent from. [in] double X0, // X coordinate on arc for the line's second endpoint. [in] double Y0, // Y coordinate on arc for the line's second endpoint. [in] double Z0, // Z coordinate on arc for the line's second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1006000F) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTan2Arcs( [in] IGraphic* Arc1, // First arc. [in] IGraphic* Arc2, // Second arc. [in] IMSI_BOOL CounterClockwise, // True if tangent direction is counterclockwise. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multi segment leader (callout) line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10060010) ,helpstring("Creates and adds a multi segment leader (callout) line to the collection.") ,restricted, hidden ] HRESULT AddDimensionLeader( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in, optional] BSTR Text, // The text for the leader. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a baseline dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10060011) ,helpstring("Creates and adds a WHATEVER to the collection.") ,restricted, hidden ] HRESULT AddDimensionBaseline( [in] IGraphic* AddTo, // dimension line to add baseline dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a continuous dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10060012) ,helpstring("Creates and adds a continuous dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionContinuous( [in] IGraphic* AddTo, // dimension line to add continuous dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single segment double line to the collection. * * @see TCADAPI TCWDoubleLineSingle function */ [ helpcontext(0x10060013) ,helpstring("Creates and adds a single segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineSingle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double regular polygon to the collection. * * @see TCADAPI TCWDoubleLinePolygon function */ [ helpcontext(0x10060014) ,helpstring("Creates and adds a double regular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long Sides, // Number of sides. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rectangle to the collection. * * @see TCADAPI TCWDoubleLineRectangle function */ [ helpcontext(0x10060015) ,helpstring("Creates and adds a double rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rotated rectangle to the collection. * * @see TCADAPI TCWDoubleLineRotatedRectangle function */ [ helpcontext(0x10060016) ,helpstring("Creates and adds a double rotated rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLinePerpendicular function */ [ helpcontext(0x10060017) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment double line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineMultiline function */ [ helpcontext(0x10060018) ,helpstring("Creates and adds a multiple segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineIrregularPolygon function */ [ helpcontext(0x10060019) ,helpstring("Creates and adds a double irregular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLineParallel function */ [ helpcontext(0x1006001A) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1006001B) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1006001C) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToLine( [in] IGraphic* TangentTo, // Line to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1006001D) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTan3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1006001E) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing arc. [in] double Y1, // Y coordinate of point on existing arc. [in] double Z1, // Z coordinate of ponit on existing arc. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1006001F) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToLine( [in] IGraphic* TangentTo, // Line to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing line. [in] double Y1, // Y coordinate of point on existing line. [in] double Z1, // Z coordinate of ponit on existing line. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x10060020) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanTo3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a horizontal dimension to the collection. * * @see TCADAPI TCWDimensionHorizontal, TCWDimensionHorizontalEntity functions */ [ helpcontext(0x10060021) ,helpstring("Creates and adds a horizontal dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionHorizontal( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a vertical dimension to the collection. * * @see TCADAPI TCWDimensionVertical, TCWDimensionVerticalEntity functions */ [ helpcontext(0x10060022) ,helpstring("Creates and adds a vertical dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionVertical( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a parallel dimension to the collection. * * @see TCADAPI TCWDimensionParallel, TCWDimensionParallelEntity functions */ [ helpcontext(0x10060023) ,helpstring("Creates and adds a parallel dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionParallel( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated dimension to the collection. */ [ helpcontext(0x10060024) ,helpstring("Creates and adds a rotated dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRotated( [in] double X0, // X coordinate of first endpoint defining angle and direction. [in] double Y0, // Y coordinate of first endpoint defining angle and direction. [in] double Z0, // Z coordinate of first endpoint defining angle and direction. [in] double X1, // X coordinate of second endpoint defining angle and direction. [in] double Y1, // Y coordinate of second endpoint defining angle and direction. [in] double Z1, // Z coordinate of second endpoint defining angle and direction. [in] double X2, // X coordinate of first extension line. [in] double Y2, // Y coordinate of first extension line. [in] double Z2, // Z coordinate of first extension line. [in] double X3, // X coordinate of second extension line. [in] double Y3, // Y coordinate of second extension line. [in] double Z3, // Z coordinate of second extension line. [in] double X4, // X coordinate of dimension. [in] double Y4, // Y coordinate of dimension. [in] double Z4, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a datum dimension to the collection. */ [ helpcontext(0x10060025) ,helpstring("Creates and adds a datum dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDatum( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an angular dimension to the collection. */ [ helpcontext(0x10060026) ,helpstring("Creates and adds an angular dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionAngular( [in] IGraphic* Line1, // First graphic. [in] IGraphic* Line2, // Second graphic. [in] double X0, // X coordinate of dimension. [in] double Y0, // Y coordinate of dimension. [in] double Z0, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a radial dimension to the collection. */ [ helpcontext(0x10060027) ,helpstring("Creates and adds a radial dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRadius( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a diameter dimension to the collection. */ [ helpcontext(0x10060028) ,helpstring("Creates and adds a diameter dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDiameter( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); #endif //METHOD_OVERFLOW_BUG /** * Creates and adds a new Graphic object to the collection. */ [ helpcontext(0x10060029) ,helpstring("Creates and adds a new Graphic object to the collection.") ] HRESULT Add( [in, optional] VARIANT* GraphicType, // The type of the Graphic object. [in, optional] VARIANT* RegenMethod, // A RegenMethod object or index. [in, optional] VARIANT* Inherit, // True if the new Graphic object will inherit the properties of its parent. [in, optional] VARIANT* Style, // Not used in current implementation. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After, // The Graphic object or index that will precede the added Graphic object. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds an existing Graphic object to the collection. */ [ helpcontext(0x1006002A) ,helpstring("Adds an existing Graphic object to the collection.") ] HRESULT AddGraphic( [in] IGraphic* Graphic, // The Graphic object to add. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After // The Graphic object or index that will precede the added Graphic object. ); /** * Returns the collection's bounding box. */ [ helpcontext(0x1006002B) ,helpstring("Returns the collection's bounding box.") ] HRESULT CalcBoundingBox( [in, optional] VARIANT* Transform, // A transformation Matrix object. [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Clears the contents of the collection. */ [ helpcontext(0x1006002C) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear( [in, optional] VARIANT* CosmeticOnly // True to only clear cosmetics. ); /** * Clears construction lines and arcs. * * @see TCADAPI TCWClearAllConstructions function. */ [ helpcontext(0x1006002D) ,helpstring("Clears construction lines and arcs.") ,restricted, hidden ] HRESULT ClearConstruction( ); /** * Copies the contents of the collection to the Clipboard. */ [ helpcontext(0x1006002E) ,helpstring("Copies the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Copy( ); /** * Cuts the contents of the collection to the Clipboard. */ [ helpcontext(0x1006002F) ,helpstring("Cuts the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Cut( ); /** * Draws all the Graphic objects in the collection. */ [ helpcontext(0x10060030) ,helpstring("Draws all the Graphic objects in the collection.") ] HRESULT Draw( [in, optional] VARIANT* View // If supplied, the View object to draw on. ); /** * Removes an item from the collection. */ [ helpcontext(0x10060031) ,helpstring("Removes an item from the collection.") ] HRESULT Remove( [in] VARIANT* Index, // The index of item to be removed. [out, retval] IGraphic** prop // The Graphic object that was removed. ); /** * Selects all the Graphic object's in the collection. * * @see TCADAPI TCWSelectAll function. */ [ helpcontext(0x10060032) ,helpstring("Selects all the Graphic object's in the collection.") ] HRESULT Select( ); /** * Unselects all the Graphic object's in the collection. * * @see TCADAPI TCWDeselectAll function. */ [ helpcontext(0x10060033) ,helpstring("Unselects all the Graphic object's in the collection.") ] HRESULT Unselect( ); //////////////////////////// AddXXXMethods \\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionAngularLine function */ [ helpcontext(0x10060034) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionAngularLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionHorizontalLine function */ [ helpcontext(0x10060035) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionHorizontalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionVerticalLine function */ [ helpcontext(0x10060036) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionVerticalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionCenterAndPointCircle function */ [ helpcontext(0x10060037) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionCenterAndPointCircle( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the perimeter point. [in] double Y1, // Y coordinate of the perimeter point. [in] double Z1, // Z coordinate of the perimeter point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionDoublePointCircle function */ [ helpcontext(0x10060038) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionDoublePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionTriplePointCircle function */ [ helpcontext(0x10060039) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionTriplePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a dot marker to the collection. * * @see TCADAPI TCWDot function */ [ helpcontext(0x1006003A) ,helpstring("Creates and adds a dot marker to the collection.") ,restricted, hidden ] HRESULT AddDot( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a star to the collection. * * @see TCADAPI TCWStar function */ [ helpcontext(0x1006003B) ,helpstring("Creates and adds a star marker to the collection.") ,restricted, hidden ] HRESULT AddStar( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a square marker to the collection. * * @see TCADAPI TCWSquare function */ [ helpcontext(0x1006003C) ,helpstring("Creates and adds a square marker to the collection.") ,restricted, hidden ] HRESULT AddSquare( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cross marker to the collection. * * @see TCADAPI TCWCross function */ [ helpcontext(0x1006003D) ,helpstring("Creates and adds a cross marker to the collection.") ,restricted, hidden ] HRESULT AddCross( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle marker to the collection. * * @see TCADAPI TCWCircle function */ [ helpcontext(0x1006003E) ,helpstring("Creates and adds a circle marker to the collection.") ,restricted, hidden ] HRESULT AddCircle( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineSingle function */ [ helpcontext(0x1006003F) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineSingle( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in] double X1, // X coordinate of the second endpoint. [in] double Y1, // Y coordinate of the second endpoint. [in] double Z1, // Z coordinate of the second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a regular polygon to the collection. * * @see TCADAPI TCWLinePolygon function */ [ helpcontext(0x10060040) ,helpstring("Creates and adds a regular polygon to the collection.") ,restricted, hidden ] HRESULT AddLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long nsides, // number of sides. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rectangle to the collection. * * @see TCADAPI TCWLineRectangle function */ [ helpcontext(0x10060041) ,helpstring("Creates and adds a rectangle to the collection.") ,restricted, hidden ] HRESULT AddLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated rectangle to the collection. * * @see TCADAPI TCWLineRotatedRectangle function */ [ helpcontext(0x10060042) ,helpstring("Creates and adds a rotated rectangle to the collection.") ,restricted, hidden ] HRESULT AddLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Height, // Height of the rectangle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLinePerpendicular function */ [ helpcontext(0x10060043) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineParallel function */ [ helpcontext(0x10060044) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWLineMultiline function */ [ helpcontext(0x10060045) ,helpstring("Creates and adds a multiple segment line to the collection.") ,restricted, hidden ] HRESULT AddLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWLineIrregularPolygon function */ [ helpcontext(0x10060046) ,helpstring("Creates and adds an irregular polygon to the collection.") ,restricted, hidden ] HRESULT AddLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a bezier curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveBezier function */ [ helpcontext(0x10060047) ,helpstring("Creates and adds a bezier curve to the collection.") ,restricted, hidden ] HRESULT AddCurveBezier( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cubic spline curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveSpline function */ [ helpcontext(0x10060048) ,helpstring("Creates and adds a cubic spline curve to the collection.") ,restricted, hidden ] HRESULT AddCurveSpline( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleCenterAndPoint function */ [ helpcontext(0x10060049) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleCenterAndPoint( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the cneter point. [in] double X1, // X coordinate of the radius point. [in] double Y1, // Y coordinate of the radius point. [in] double Z1, // Z coordinate of the radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleDoublePoint function */ [ helpcontext(0x1006004A) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleDoublePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleTriplePoint function */ [ helpcontext(0x1006004B) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTriplePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipse function */ [ helpcontext(0x1006004C) ,helpstring("Creates and adds a ellipse to the collection.") ,restricted, hidden ] HRESULT AddEllipse( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseRotatedEllipse function */ [ helpcontext(0x1006004D) ,helpstring("Creates and adds a ellipse to the collection.") ,restricted, hidden ] HRESULT AddEllipseRotatedEllipse( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseFixedRatio function */ [ helpcontext(0x1006004E) ,helpstring("Creates and adds a ellipse to the collection.") ,restricted, hidden ] HRESULT AddEllipseFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcCenterAndPoint function */ [ helpcontext(0x1006004F) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcCenterAndPoint( [in] double X0, // X coordinate of arc's center point. [in] double Y0, // Y coordinate of arc's center point. [in] double Z0, // Z coordinate of arc's center point. [in] double X1, // X coordinate of arc's radius point. [in] double Y1, // Y coordinate of arc's radius point. [in] double Z1, // Z coordinate of arc's radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcDoublePoint function */ [ helpcontext(0x10060050) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcDoublePoint( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in] double X1, // X coordinate of second endpoint. [in] double Y1, // Y coordinate of second endpont. [in] double Z1, // Z coordinate of second endpoint. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcTriplePoint function */ [ helpcontext(0x10060051) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTriplePoint( [in] double X0, // X coordinate of starting point. [in] double Y0, // Y coordinate of starting point. [in] double Z0, // Z coordinate of starting point. [in] double X1, // X coordinate of point on perimeter. [in] double Y1, // Y coordinate of point on perimeter. [in] double Z1, // Z coordinate of point on perimeter. [in] double X2, // X coordinate of ending point. [in] double Y2, // Y coordinate of ending point. [in] double Z2, // Z coordinate of ending point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcElliptical function */ [ helpcontext(0x10060052) ,helpstring("Creates and adds an elliptical arc to the collection.") ,restricted, hidden ] HRESULT AddArcElliptical( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcRotatedElliptical function */ [ helpcontext(0x10060053) ,helpstring("Creates and adds an elliptical arc to the collection.") ,restricted, hidden ] HRESULT AddArcRotatedElliptical( [in] double X0, // X coordinate of elliptical arc's center point. [in] double Y0, // Y coordinate of elliptical arc's center point. [in] double Z0, // Z coordinate of elliptical arc's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcEllipticalFixedRatio function */ [ helpcontext(0x10060054) ,helpstring("Creates and adds an elliptical arc to the collection.") ,restricted, hidden ] HRESULT AddArcEllipticalFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a text Graphic object to the collection. * * @see TCADAPI TCWText function */ [ helpcontext(0x10060055) ,helpstring("Creates and adds a text Graphic object to the collection.") ,restricted, hidden ] HRESULT AddText( [in] BSTR Text, // The text string. [in] double X0, // X coordinate of text's starting point. [in] double Y0, // Y coordinate of text's starting point. [in] double Z0, // Z coordinate of text's starting point. [in] double Height, // Height of text object. [in, optional] VARIANT* Angle, // Rotation angle of text in radians. [in, optional] VARIANT* Width, // Width of text object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////// Blocks Groups and Hatches \\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a block in the Drawing object from the Graphic objects in the collection. * * @see TCADAPI TCWBlockCreate function */ [ helpcontext(0x10060056) ,helpstring("Creates a block in the Drawing object from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT CreateBlock( [in, optional] BSTR Name, // Name for the new block. [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [in, optional] VARIANT* CopyGraphics, // True to make the group using copies of the Graphic objects in the Graphics collection. [in, optional] VARIANT* InsertBlock, // True to insert the new block in the Drawing object. [in, out, optional] VARIANT* Insert, // The Insert Graphic object if InsertBlock was true [out, retval] Block** prop // The newly created block. ); /** * Adds a block insertion to the collection. * * @see TCADAPI TCWBlockInsert function */ [ helpcontext(0x10060057) ,helpstring("Adds a block insertion to the collection.") ,restricted, hidden ] HRESULT AddBlockInsertion( [in] VARIANT* Block, // BlockObj or index of the block. [in, optional] VARIANT* X0, // X coordinate of the block insertion point. [in, optional] VARIANT* Y0, // Y coordinate of the block insertion point. [in, optional] VARIANT* Z0, // Z coordinate of the block insertion point. [in, optional] VARIANT* XScale, // X scale factor. [in, optional] VARIANT* YScale, // Y scale factor. [in, optional] VARIANT* ZScale, // Z scale factor. [in, optional] VARIANT* Angle, // Rotation angle of block insertion in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds a group to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWGroupCreate function */ [ helpcontext(0x10060058) ,helpstring("Adds a group to the collection from the Graphic objects in the collection.") ] HRESULT AddGroup( [in] VARIANT* Name, // Name for the new group. [in, optional] VARIANT* Copy, // True to make the group using copies of the Graphic objects in the Graphics collection. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Explodes groups and block insertions in the collection. * * @see TCADAPI TCWExplode function */ [ helpcontext(0x10060059) ,helpstring("Explodes groups and block insertions in the collection.") ,restricted, hidden ] HRESULT Explode( [out, retval] GraphicSet** prop // The exploded Graphic objects. ); /////////////////////////// Copy Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1006005A) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAbsolute( [in] double X, // X coordinate to copy to. [in] double Y, // Y coordinate to copy to. [in] double Z, // Z coordinate to copy to. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1006005B) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified offset is for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1006005C) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAngle( [in] double Length, // Length of copy. [in] double Angle, // Angle of copy in radians. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified length is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1006005D) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAbsolute( [in] double X0, // X coordinate of center of arc. [in] double Y0, // Y coordinate of center of arc. [in] double Z0, // Z coordinate of center of arc. [in] double X1, // X coordinate of point on arc. [in] double Y1, // Y coordinate of point on arc. [in] double Z1, // Z coordinate of point on arc. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1006005E) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAngle( [in] double X, // X coordinate of center of arc. [in] double Y, // Y coordinate of center of arc. [in] double Z, // Z coordinate of center of arc. [in] double Angle, // Angle between copies or for last copy. [in] double RotationAngle, // Angle to rotate each copy. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified angle is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x1006005F) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyAbsolute( [in] double X, // Coordinate defining row and column spacing. [in] double Y, // Coordinate defining row and column spacing. [in] double Z, // Coordinate defining row and column spacing. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x10060060) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyRelative( [in] double U, // Column offset. [in] double V, // Row offset. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified offsets are for last copy. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Mirrors the Graphic objects in the collection about a line. */ [ helpcontext(0x10060061) ,helpstring("Mirrors the Graphic objects in the collection about a line.") ,restricted, hidden ] HRESULT MirrorCopyLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Mirrors the Graphic objects in the collection about an angle. */ [ helpcontext(0x10060062) ,helpstring("Mirrors the Graphic objects in the collection about an angle.") ,restricted, hidden ] HRESULT MirrorCopyAngle( [in] double X, // X coordinate to mirror to. [in] double Y, // Y coordinate to mirror to. [in] double Z, // Z coordinate to mirror to. [in] double Angle, // Angle of mirror. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Scales the Graphic objects in the collection. * * @see TCADAPI TCWSelectionScale function. */ [ helpcontext(0x10060063) ,helpstring("Scales the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Scale( [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10060064) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAxis( [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* XAxis, // X coordinate of axis direction. [in, optional] VARIANT* YAxis, // Y coordinate of axis direction. [in, optional] VARIANT* ZAxis, // Z coordinate of axis direction. [in, optional] VARIANT* X, // X coordinate of the rotation center. [in, optional] VARIANT* Y, // Y coordinate of the rotation center. [in, optional] VARIANT* Z, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10060065) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAbsolute( [in] VARIANT* XTo, // X coordinate of the point to rotate to. [in] VARIANT* YTo, // Y coordinate of the point to rotate to. [in] VARIANT* ZTo, // Z coordinate of the point to rotate to. [in] VARIANT* XFrom, // X coordinate of the point to rotate from. [in] VARIANT* YFrom, // Y coordinate of the point to rotate from. [in] VARIANT* ZFrom, // Z coordinate of the point to rotate from. [in, optional] VARIANT* XRef, // X coordinate of the rotation center. [in, optional] VARIANT* YRef, // Y coordinate of the rotation center. [in, optional] VARIANT* ZRef, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection to a new location. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10060066) ,helpstring("Moves the Graphic objects in the collection to a new location.") ,restricted, hidden ] HRESULT MoveAbsolute( [in] double X, // X coordinate to move to. [in] double Y, // Y coordinate to move to. [in] double Z, // Z coordinate to move to. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection by a specified offset. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10060067) ,helpstring("Moves the Graphic objects in the collection by a specified offset.") ,restricted, hidden ] HRESULT MoveRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Transforms the Graphic objects in the collection. */ [ helpcontext(0x10060068) ,helpstring("Transforms the Graphic object.") ,restricted, hidden ] HRESULT Transform( [in] IMatrix* Transform // The matrix to perform transformation. ); ////////////////////// Miscellaneous Edit Methods \\\\\\\\\\\\\\\\\\\\ /** * Aligns the Graphic objects in the collection. * * @see TCADAPI TCWAlignXXX functions. */ [ helpcontext(0x10060069) ,helpstring("Aligns the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Align( [in] ImsiAlignType AlignType // Bottom, middle, etc. ); /** * Aligns the Graphic objects in the collection along a line. */ [ helpcontext(0x1006006A) ,helpstring("Aligns the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT AlignAlongLine( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1 // Z coordinate of the second point. ); /** * Returns the index within the Graphics collection of the specified graphic handle. * Private. */ [ restricted ,helpcontext(0x1006006B) ,helpstring("Private. Returns the index within the Graphics collection of the specified graphic handle.") ] HRESULT _FindIndex( [in] long g, // The graphic handle. [out, retval] long* prop // The index. ); /** * Returns the Graphic objects in the collection that match a query string. * * @see TCADAPI TCWSelectByQuery function. */ [ helpcontext(0x1006006C) ,helpstring("Returns the Graphic objects in the collection that match a query string.") ,hidden, restricted ] HRESULT QuerySet( [in] BSTR Query, // The query string. [out, retval] GraphicSet** prop // The matching Graphic objects, as a GraphicSet__Object. ); /** * Creates and adds a group of polylines or polygons to the collection. */ [ helpcontext(0x1006006D) ,helpstring("Creates and adds a group of polylines or polygons to the collection.") ,restricted, hidden ] HRESULT AddPolys( [in] ImsiPolyType Type, // Type of poly(s) to be added. [in] VARIANT* Coords, // Array of (X, Y, Z) poly coordinates. [out, retval] GraphicSet** NewPolys // The newly created Graphic objects. ); /** * Generates a bounding polygon array to use in drag operations. * * @see View::DragOutline */ [ helpcontext(0x1006006E) ,helpstring("Generates a bounding polygon array to use in drag operations.") ,restricted, hidden ] HRESULT CreateDragOutline( [in, out] VARIANT* Coords // Array of (X, Y, Z) polygon coordinates. ); /** * Creates and adds a bunch of polylines to the collection. * The returned Graphics object contains a set with freshly created * polygons. The user can set properties, etc. */ [ helpcontext(0x1006006F) ,helpstring("Creates and adds a bunch of polylines to the collection.") ,restricted, hidden ] HRESULT AddPolylines( [in] long NumberOfPolylines, // number of polylines to create [in] VARIANT* Coords, // SafeArray of triplets of coordinates. [in] IMSI_BOOL closed, // whether each polyline is closed [out, retval] GraphicSet** NewPolys // The newly created set of Graphic objects. ); /** * Finds the Graphic object in the collection with the given ID. */ [ helpcontext(0x10060070) ,helpstring("Finds the Graphic object in the collection with the given ID.") ] HRESULT GraphicFromID( [in] long ID, // ID of Graphic object. [out, retval] IGraphic** prop // The Graphic object. ); /** * Creates and adds an attribute definition Graphic object to the collection. */ [ helpcontext(0x10060071) ,helpstring("Creates and adds an attribute definition Graphic object to the collection.") ,restricted, hidden ] HRESULT AddAttributeDefinition( [in] BSTR Tag, // The text string for the attribute definition tag. [in] double X0, // X coordinate of attdef's starting point. [in] double Y0, // Y coordinate of attdef's starting point. [in] double Z0, // Z coordinate of attdef's starting point. [in] double Height, // Height of attdef object. [in, optional] VARIANT* Angle, // Rotation angle of attdef in radians. [in, optional] VARIANT* Width, // Width of attdef object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [in, optional] VARIANT* AttFlags, // ImsiAttFlag values. [in, optional] VARIANT* Default, // Default value of attribute. [in, optional] VARIANT* Prompt, // Prompt for attribute. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////////////////////////////////////////////////////////////// // Selection methods /** * Prints the object. * * @see TCADAPI TCWDrawingPrint function. */ [ helpcontext(0x10060072) ,helpstring("Prints the object.") ,restricted, hidden ] HRESULT PrintOut( [in, optional] VARIANT* From, // Starting page number. [in, optional] VARIANT* To, // Ending page number. [in, optional] VARIANT* Copies, // Number of copies to print. [in, optional] VARIANT* ActivePrinter, // Name of printer to use. [in, optional] VARIANT* OutputFileName, // File name to print to. [in, optional] VARIANT* FitToPage, // True to fit on one page. [in, optional] VARIANT* Collate // True to collate copies. ); /** * Saves the contents of the Selection object. * * @see TCADAPI TCWDrawingSaveAs function. */ [ helpcontext(0x10060073) ,helpstring("Saves the contents of the Selection object.") ] HRESULT SaveAs( [in] BSTR Filename, // The file name to save to. [in, optional] VARIANT* Filter // Name or index of preferred filter. ); /** * Adds a Region to the collection from the Graphic objects in the collection. * */ [ helpcontext(0x10060073) ,helpstring("Adds a Region to the collection from the Graphic objects in the collection.") ] HRESULT AddRegion( [in, optional] VARIANT* pvarName ,[in, optional] VARIANT* pvarCopy ,[out, retval] IGraphic** prop // The newly GraphicObject. ); }; /** * A named set of references to Graphic objects in a Drawing object. */ [ object ,uuid(6A481134-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10070000) ,helpstring("A named set of references to Graphic objects in a Drawing object.") ] interface GraphicSet : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10070001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10070002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10070003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10070004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IGraphic** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10070005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10070006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #ifndef METHOD_OVERFLOW_BUG /** * Applies a Style object to the contents of the collection. */ [ helpcontext(0x10070007) ,helpstring("Applies a Style object to the contents of the collection.") ,restricted, hidden ] HRESULT ApplyStyle( [in] Style* StyleToApply // The Style object to apply. ); /** * Checks the spelling of all the text Graphic object's in the collection. */ [ helpcontext(0x10070008) ,helpstring("Checks the spelling of all the text Graphic object's in the collection.") ,restricted, hidden ] HRESULT CheckSpelling( [in, optional] VARIANT* CustomDictionary, // The name of a custom dictionary. [in, optional] VARIANT* IgnoreUppercase, // True to ignore case. [in, optional] VARIANT* AlwaysSuggest, // True to suggest corrections. [in, optional] VARIANT* CustomDictionary2, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary3, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary4, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary5, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary6, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary7, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary8, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary9, // The name of a custom dictionary. [in, optional] VARIANT* CustomDictionary10 // The name of a custom dictionary. ); /** * Adds a hatch pattern to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWCreateHatch function */ [ helpcontext(0x10070009) ,helpstring("Adds a hatch pattern to the collection from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT AddHatch( [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates a Style object based on the contents of the collection. */ [ helpcontext(0x1007000A) ,helpstring("Creates a Style object based on the contents of the collection.") ,restricted, hidden ] HRESULT CreateStyle( [in] Style* BasedOn, // The style to base the new Style object on. [out, retval] Style** prop // The newly created Style object. ); /** * Creates and adds an OLE object to the collection. */ [ helpcontext(0x1007000B) ,helpstring("Creates and adds an OLE object to the collection.") ,restricted, hidden ] HRESULT AddObject( [in, optional] VARIANT* ClassType, // Name of data format to paste. [in, optional] VARIANT* FileName, // Name of file to create object or link from. [in, optional] VARIANT* LinkToFile, // True if object is a link. [in, optional] VARIANT* DisplayAsIcon, // True to display as icon. [in, optional] VARIANT* IconFileName, // File containing icon. [in, optional] VARIANT* IconIndex, // Index of icon to use if displaying as icon. [in, optional] VARIANT* IconLabel, // Label to display if displaying as icon. [in, optional] VARIANT* X, // X coordinate of center of object. [in, optional] VARIANT* Y, // Y coordinate of center of object. [in, optional] VARIANT* Z, // Z coordinate of center of object. [in, optional] VARIANT* Width, // Width of object. [in, optional] VARIANT* Height, // Height of object. [in, optional] VARIANT* Anchor, // TODO: What's this for? [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1007000C) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanArcPoint( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for line endpoint. [in] double Y0, // Y coordinate on arc for line endpoint. [in] double Z0, // Z coordinate on arc for line endpoint. [in] double length, // length of tangent line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1007000D) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanToArc( [in] IGraphic* TangentTo, // Arc to draw line tangent to. [in] double X0, // X coordinate on arc for the line's first endpoint. [in] double Y0, // Y coordinate on arc for the line's first endpoint. [in] double Z0, // Z coordinate on arc for the line's first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1007000E) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTanFromArc( [in] IGraphic* TangentFrom, // Arc to draw line tangent from. [in] double X0, // X coordinate on arc for the line's second endpoint. [in] double Y0, // Y coordinate on arc for the line's second endpoint. [in] double Z0, // Z coordinate on arc for the line's second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. */ [ helpcontext(0x1007000F) ,helpstring("Creates and adds a single line segment to the collection.") ,restricted, hidden ] HRESULT AddLineTan2Arcs( [in] IGraphic* Arc1, // First arc. [in] IGraphic* Arc2, // Second arc. [in] IMSI_BOOL CounterClockwise, // True if tangent direction is counterclockwise. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multi segment leader (callout) line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10070010) ,helpstring("Creates and adds a multi segment leader (callout) line to the collection.") ,restricted, hidden ] HRESULT AddDimensionLeader( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in, optional] BSTR Text, // The text for the leader. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a baseline dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10070011) ,helpstring("Creates and adds a WHATEVER to the collection.") ,restricted, hidden ] HRESULT AddDimensionBaseline( [in] IGraphic* AddTo, // dimension line to add baseline dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a continuous dimension to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. */ [ helpcontext(0x10070012) ,helpstring("Creates and adds a continuous dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionContinuous( [in] IGraphic* AddTo, // dimension line to add continuous dimension to. [in] double X0, // X coordinate of second extension line. [in] double Y0, // Y coordinate of second extension line. [in] double Z0, // Z coordinate of second extension line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single segment double line to the collection. * * @see TCADAPI TCWDoubleLineSingle function */ [ helpcontext(0x10070013) ,helpstring("Creates and adds a single segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineSingle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double regular polygon to the collection. * * @see TCADAPI TCWDoubleLinePolygon function */ [ helpcontext(0x10070014) ,helpstring("Creates and adds a double regular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long Sides, // Number of sides. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rectangle to the collection. * * @see TCADAPI TCWDoubleLineRectangle function */ [ helpcontext(0x10070015) ,helpstring("Creates and adds a double rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double rotated rectangle to the collection. * * @see TCADAPI TCWDoubleLineRotatedRectangle function */ [ helpcontext(0x10070016) ,helpstring("Creates and adds a double rotated rectangle to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLinePerpendicular function */ [ helpcontext(0x10070017) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment double line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineMultiline function */ [ helpcontext(0x10070018) ,helpstring("Creates and adds a multiple segment double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWDoubleLineIrregularPolygon function */ [ helpcontext(0x10070019) ,helpstring("Creates and adds a double irregular polygon to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a double line to the collection. * * @see TCADAPI TCWDoubleLineParallel function */ [ helpcontext(0x1007001A) ,helpstring("Creates and adds a double line to the collection.") ,restricted, hidden ] HRESULT AddDoubleLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [in, optional] VARIANT* DoubleLineOffset, // An ImsiDoubleLineOffet. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1007001B) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1007001C) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTanToLine( [in] IGraphic* TangentTo, // Line to draw new circle tangent to. [in] double X0, // X coordinate of the new circle's center point. [in] double Y0, // Y coordinate of the new circle's center point. [in] double Z0, // Z coordinate of the new circle's center point. [in] double X1, // X coordinate of the new circle's radius point. [in] double Y1, // Y coordinate of the new circle's radius point. [in] double Z1, // Z coordinate of the new circle's radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. */ [ helpcontext(0x1007001D) ,helpstring("Creates and adds a circle to the collection.") ,restricted, hidden ] HRESULT AddCircleTan3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1007001E) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToArc( [in] IGraphic* TangentTo, // Arc or circle to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing arc. [in] double Y1, // Y coordinate of point on existing arc. [in] double Z1, // Z coordinate of ponit on existing arc. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x1007001F) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanToLine( [in] IGraphic* TangentTo, // Line to draw arc tangent to. [in] double X0, // X coordinate of new arc's radius point. [in] double Y0, // Y coordinate of new arc's radius point. [in] double Z0, // Z coordinate of new arc's radius ponit. [in] double X1, // X coordinate of point on existing line. [in] double Y1, // Y coordinate of point on existing line. [in] double Z1, // Z coordinate of ponit on existing line. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. */ [ helpcontext(0x10070020) ,helpstring("Creates and adds an arc to the collection.") ,restricted, hidden ] HRESULT AddArcTanTo3Arcs( [in] IGraphic* Arc1, // First arc or circle. [in] IGraphic* Arc2, // Second arc or circle. [in] IGraphic* Arc3, // Third arc or circle. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a horizontal dimension to the collection. * * @see TCADAPI TCWDimensionHorizontal, TCWDimensionHorizontalEntity functions */ [ helpcontext(0x10070021) ,helpstring("Creates and adds a horizontal dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionHorizontal( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a vertical dimension to the collection. * * @see TCADAPI TCWDimensionVertical, TCWDimensionVerticalEntity functions */ [ helpcontext(0x10070022) ,helpstring("Creates and adds a vertical dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionVertical( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a parallel dimension to the collection. * * @see TCADAPI TCWDimensionParallel, TCWDimensionParallelEntity functions */ [ helpcontext(0x10070023) ,helpstring("Creates and adds a parallel dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionParallel( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated dimension to the collection. */ [ helpcontext(0x10070024) ,helpstring("Creates and adds a rotated dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRotated( [in] double X0, // X coordinate of first endpoint defining angle and direction. [in] double Y0, // Y coordinate of first endpoint defining angle and direction. [in] double Z0, // Z coordinate of first endpoint defining angle and direction. [in] double X1, // X coordinate of second endpoint defining angle and direction. [in] double Y1, // Y coordinate of second endpoint defining angle and direction. [in] double Z1, // Z coordinate of second endpoint defining angle and direction. [in] double X2, // X coordinate of first extension line. [in] double Y2, // Y coordinate of first extension line. [in] double Z2, // Z coordinate of first extension line. [in] double X3, // X coordinate of second extension line. [in] double Y3, // Y coordinate of second extension line. [in] double Z3, // Z coordinate of second extension line. [in] double X4, // X coordinate of dimension. [in] double Y4, // Y coordinate of dimension. [in] double Z4, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a datum dimension to the collection. */ [ helpcontext(0x10070025) ,helpstring("Creates and adds a datum dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDatum( [in] double X0, // X coordinate of first extension line. [in] double Y0, // Y coordinate of first extension line. [in] double Z0, // Z coordinate of first extension line. [in] double X1, // X coordinate of second extension line. [in] double Y1, // Y coordinate of second extension line. [in] double Z1, // Z coordinate of second extension line. [in] double X2, // X coordinate of dimension. [in] double Y2, // Y coordinate of dimension. [in] double Z2, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an angular dimension to the collection. */ [ helpcontext(0x10070026) ,helpstring("Creates and adds an angular dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionAngular( [in] IGraphic* Line1, // First graphic. [in] IGraphic* Line2, // Second graphic. [in] double X0, // X coordinate of dimension. [in] double Y0, // Y coordinate of dimension. [in] double Z0, // Z coordinate of dimension. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a radial dimension to the collection. */ [ helpcontext(0x10070027) ,helpstring("Creates and adds a radial dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionRadius( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a diameter dimension to the collection. */ [ helpcontext(0x10070028) ,helpstring("Creates and adds a diameter dimension to the collection.") ,restricted, hidden ] HRESULT AddDimensionDiameter( [in] IGraphic* Arc, // Arc or circle. [in] double X0, // X coordinate of dimension text. [in] double Y0, // Y coordinate of dimension text. [in] double Z0, // Z coordinate of dimension text. [out, retval] IGraphic** prop // The newly created Graphic object. ); #endif //METHOD_OVERFLOW_BUG /** * Creates and adds a new Graphic object to the collection. */ [ helpcontext(0x10070029) ,helpstring("Creates and adds a new Graphic object to the collection.") ] HRESULT Add( [in, optional] VARIANT* GraphicType, // The type of the Graphic object. [in, optional] VARIANT* RegenMethod, // A RegenMethod object or index. [in, optional] VARIANT* Inherit, // True if the new Graphic object will inherit the properties of its parent. [in, optional] VARIANT* Style, // Not used in current implementation. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After, // The Graphic object or index that will precede the added Graphic object. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds an existing Graphic object to the collection. */ [ helpcontext(0x1007002A) ,helpstring("Adds an existing Graphic object to the collection.") ] HRESULT AddGraphic( [in] IGraphic* Graphic, // The Graphic object to add. [in, optional] VARIANT* Before, // The Graphic object or index that will follow the added Graphic object. [in, optional] VARIANT* After // The Graphic object or index that will precede the added Graphic object. ); /** * Returns the collection's bounding box. */ [ helpcontext(0x1007002B) ,helpstring("Returns the collection's bounding box.") ,restricted, hidden ] HRESULT CalcBoundingBox( [in, optional] VARIANT* Transform, // A transformation Matrix object. [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Clears the contents of the collection. */ [ helpcontext(0x1007002C) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear( [in, optional] VARIANT* CosmeticOnly // True to only clear cosmetics. ); /** * Clears construction lines and arcs. * * @see TCADAPI TCWClearAllConstructions function. */ [ helpcontext(0x1007002D) ,helpstring("Clears construction lines and arcs.") ,restricted, hidden ] HRESULT ClearConstruction( ); /** * Copies the contents of the collection to the Clipboard. */ [ helpcontext(0x1007002E) ,helpstring("Copies the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Copy( ); /** * Cuts the contents of the collection to the Clipboard. */ [ helpcontext(0x1007002F) ,helpstring("Cuts the contents of the collection to the Clipboard.") ,restricted, hidden ] HRESULT Cut( ); /** * Draws all the Graphic objects in the collection. */ [ helpcontext(0x10070030) ,helpstring("Draws all the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Draw( [in] VARIANT* View // If supplied, the View object to draw on. ); /** * Removes an item from the collection. */ [ helpcontext(0x10070031) ,helpstring("Removes an item from the collection.") ] HRESULT Remove( [in] VARIANT* Index, // The index of item to be removed. [out, retval] IGraphic** prop // The Graphic object that was removed. ); /** * Selects all the Graphic object's in the collection. * * @see TCADAPI TCWSelectAll function. */ [ helpcontext(0x10070032) ,helpstring("Selects all the Graphic object's in the collection.") ] HRESULT Select( ); /** * Unselects all the Graphic object's in the collection. * * @see TCADAPI TCWDeselectAll function. */ [ helpcontext(0x10070033) ,helpstring("Unselects all the Graphic object's in the collection.") ] HRESULT Unselect( ); //////////////////////////// AddXXXMethods \\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionAngularLine function */ [ helpcontext(0x10070034) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionAngularLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionHorizontalLine function */ [ helpcontext(0x10070035) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionHorizontalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction line to the collection. * * @see TCADAPI TCWConstructionVerticalLine function */ [ helpcontext(0x10070036) ,helpstring("Creates and adds a construction line to the collection.") ,restricted, hidden ] HRESULT AddConstructionVerticalLine( [in] double X0, // X coordinate of the line. [in] double Y0, // Y coordinate of the line. [in] double Z0, // Z coordinate of the line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionCenterAndPointCircle function */ [ helpcontext(0x10070037) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionCenterAndPointCircle( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the perimeter point. [in] double Y1, // Y coordinate of the perimeter point. [in] double Z1, // Z coordinate of the perimeter point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionDoublePointCircle function */ [ helpcontext(0x10070038) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionDoublePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a construction circle to the collection. * * @see TCADAPI TCWConstructionTriplePointCircle function */ [ helpcontext(0x10070039) ,helpstring("Creates and adds a construction circle to the collection.") ,restricted, hidden ] HRESULT AddConstructionTriplePointCircle( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a dot marker to the collection. * * @see TCADAPI TCWDot function */ [ helpcontext(0x1007003A) ,helpstring("Creates and adds a dot marker to the collection.") ] HRESULT AddDot( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a star to the collection. * * @see TCADAPI TCWStar function */ [ helpcontext(0x1007003B) ,helpstring("Creates and adds a star marker to the collection.") ] HRESULT AddStar( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a square marker to the collection. * * @see TCADAPI TCWSquare function */ [ helpcontext(0x1007003C) ,helpstring("Creates and adds a square marker to the collection.") ] HRESULT AddSquare( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cross marker to the collection. * * @see TCADAPI TCWCross function */ [ helpcontext(0x1007003D) ,helpstring("Creates and adds a cross marker to the collection.") ] HRESULT AddCross( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle marker to the collection. * * @see TCADAPI TCWCircle function */ [ helpcontext(0x1007003E) ,helpstring("Creates and adds a circle marker to the collection.") ] HRESULT AddCircle( [in] double X0, // X coordinate of the point. [in] double Y0, // Y coordinate of the point. [in] double Z0, // Z coordinate of the point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineSingle function */ [ helpcontext(0x1007003F) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineSingle( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [in] double X1, // X coordinate of the second endpoint. [in] double Y1, // Y coordinate of the second endpoint. [in] double Z1, // Z coordinate of the second endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a regular polygon to the collection. * * @see TCADAPI TCWLinePolygon function */ [ helpcontext(0x10070040) ,helpstring("Creates and adds a regular polygon to the collection.") ] HRESULT AddLinePolygon( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the center point. [in] double X1, // X coordinate of the corner point. [in] double Y1, // Y coordinate of the corner point. [in] double Z1, // Z coordinate of the corner point. [in] long nsides, // number of sides. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rectangle to the collection. * * @see TCADAPI TCWLineRectangle function */ [ helpcontext(0x10070041) ,helpstring("Creates and adds a rectangle to the collection.") ] HRESULT AddLineRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a rotated rectangle to the collection. * * @see TCADAPI TCWLineRotatedRectangle function */ [ helpcontext(0x10070042) ,helpstring("Creates and adds a rotated rectangle to the collection.") ] HRESULT AddLineRotatedRectangle( [in] double X0, // X coordinate of the upper left corner. [in] double Y0, // Y coordinate of the upper left corner. [in] double Z0, // Z coordinate of the upper left corner. [in] double X1, // X coordinate of the lower right corner. [in] double Y1, // Y coorindate of the lower right corner. [in] double Z1, // Z coorindate of the lower right corner. [in] double Height, // Height of the rectangle. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLinePerpendicular function */ [ helpcontext(0x10070043) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLinePerpendicular( [in] IGraphic* PerpTo, // Line to make new line perpendicular to. [in] double X0, // X coordinate of the point on the existing line. [in] double Y0, // Y coordinate of the point on the existing line. [in] double Z0, // Z coordinate of the point on the existing line. [in] double X1, // X coordinate of the second point on the new line. [in] double Y1, // Y coordinate of the second point on the new line. [in] double Z1, // Z coordinate of the second point on the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a single line segment to the collection. * * @see TCADAPI TCWLineParallel function */ [ helpcontext(0x10070044) ,helpstring("Creates and adds a single line segment to the collection.") ] HRESULT AddLineParallel( [in] IGraphic* ParallelTo, // Line to make new line parallel to. [in] double X0, // X coordinate of the new line. [in] double Y0, // Y coordinate of the new line. [in] double Z0, // Z coordinate of the new line. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a multiple segment line to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWLineMultiline function */ [ helpcontext(0x10070045) ,helpstring("Creates and adds a multiple segment line to the collection.") ] HRESULT AddLineMultiline( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an irregular polygon to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Close call to complete the Graphic object. * * @see TCADAPI TCWLineIrregularPolygon function */ [ helpcontext(0x10070046) ,helpstring("Creates and adds an irregular polygon to the collection.") ] HRESULT AddLineIrregularPolygon( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a bezier curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveBezier function */ [ helpcontext(0x10070047) ,helpstring("Creates and adds a bezier curve to the collection.") ] HRESULT AddCurveBezier( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a cubic spline curve to the collection. * The returned Graphic object contains only a beginning vertex. The user must * use subsequent Graphic.NextPoint calls to add segments to the Graphic object, * and a Graphic.Finish call to complete the Graphic object. * * @see TCADAPI TCWCurveSpline function */ [ helpcontext(0x10070048) ,helpstring("Creates and adds a cubic spline curve to the collection.") ] HRESULT AddCurveSpline( [in] double X0, // X coordinate of the first endpoint. [in] double Y0, // Y coordinate of the first endpoint. [in] double Z0, // Z coordinate of the first endpoint. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleCenterAndPoint function */ [ helpcontext(0x10070049) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleCenterAndPoint( [in] double X0, // X coordinate of the center point. [in] double Y0, // Y coordinate of the center point. [in] double Z0, // Z coordinate of the cneter point. [in] double X1, // X coordinate of the radius point. [in] double Y1, // Y coordinate of the radius point. [in] double Z1, // Z coordinate of the radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleDoublePoint function */ [ helpcontext(0x1007004A) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleDoublePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a circle to the collection. * * @see TCADAPI TCWCircleTriplePoint function */ [ helpcontext(0x1007004B) ,helpstring("Creates and adds a circle to the collection.") ] HRESULT AddCircleTriplePoint( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1, // Z coordinate of the second point. [in] double X2, // X coordinate of the third point. [in] double Y2, // Y coordinate of the third point. [in] double Z2, // Z coordinate of the third point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipse function */ [ helpcontext(0x1007004C) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipse( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseRotatedEllipse function */ [ helpcontext(0x1007004D) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseRotatedEllipse( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a ellipse to the collection. * * @see TCADAPI TCWEllipseFixedRatio function */ [ helpcontext(0x1007004E) ,helpstring("Creates and adds a ellipse to the collection.") ] HRESULT AddEllipseFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcCenterAndPoint function */ [ helpcontext(0x1007004F) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcCenterAndPoint( [in] double X0, // X coordinate of arc's center point. [in] double Y0, // Y coordinate of arc's center point. [in] double Z0, // Z coordinate of arc's center point. [in] double X1, // X coordinate of arc's radius point. [in] double Y1, // Y coordinate of arc's radius point. [in] double Z1, // Z coordinate of arc's radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcDoublePoint function */ [ helpcontext(0x10070050) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcDoublePoint( [in] double X0, // X coordinate of first endpoint. [in] double Y0, // Y coordinate of first endpoint. [in] double Z0, // Z coordinate of first endpoint. [in] double X1, // X coordinate of second endpoint. [in] double Y1, // Y coordinate of second endpont. [in] double Z1, // Z coordinate of second endpoint. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an arc to the collection. * * @see TCADAPI TCWArcTriplePoint function */ [ helpcontext(0x10070051) ,helpstring("Creates and adds an arc to the collection.") ] HRESULT AddArcTriplePoint( [in] double X0, // X coordinate of starting point. [in] double Y0, // Y coordinate of starting point. [in] double Z0, // Z coordinate of starting point. [in] double X1, // X coordinate of point on perimeter. [in] double Y1, // Y coordinate of point on perimeter. [in] double Z1, // Z coordinate of point on perimeter. [in] double X2, // X coordinate of ending point. [in] double Y2, // Y coordinate of ending point. [in] double Z2, // Z coordinate of ending point. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcElliptical function */ [ helpcontext(0x10070052) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcElliptical( [in] double X0, // X coordinate of bounding rectangle's upper left corner. [in] double Y0, // Y coordinate of bounding rectangle's upper left corner. [in] double Z0, // Z coordinate of bounding rectangle's upper left corner. [in] double X1, // X coordinate of bounding rectangle's lower right corner. [in] double Y1, // Y coordinate of bounding rectangle's lower right corner. [in] double Z1, // Z coordinate of bounding rectangle's lower right corner. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcRotatedElliptical function */ [ helpcontext(0x10070053) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcRotatedElliptical( [in] double X0, // X coordinate of elliptical arc's center point. [in] double Y0, // Y coordinate of elliptical arc's center point. [in] double Z0, // Z coordinate of elliptical arc's center point. [in] double X1, // X coordinate of major axis radius point. [in] double Y1, // Y coordinate of major axis radius point. [in] double Z1, // Z coordinate of major axis radius point. [in] double X2, // X coordinate of minor axis radius point. [in] double Y2, // Y coordinate of minor axis radius point. [in] double Z2, // Z coordinate of minor axis radius point. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds an elliptical arc to the collection. * * @see TCADAPI TCWArcEllipticalFixedRatio function */ [ helpcontext(0x10070054) ,helpstring("Creates and adds an elliptical arc to the collection.") ] HRESULT AddArcEllipticalFixedRatio( [in] double X0, // X coordinate of ellipse's center point. [in] double Y0, // Y coordinate of ellipse's center point. [in] double Z0, // Z coordinate of ellipse's center point. [in] double X1, // X coordinate of radius in Y direction. [in] double Y1, // Y coordinate of radius in Y direction. [in] double Z1, // Z coordinate of radius in Y direction. [in] double XToYRatio, // Ratio of Rx to Ry. [in] double StartAngle, // Starting angle in radians. [in] double EndAngle, // Ending angle in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Creates and adds a text Graphic object to the collection. * * @see TCADAPI TCWText function */ [ helpcontext(0x10070055) ,helpstring("Creates and adds a text Graphic object to the collection.") ] HRESULT AddText( [in] BSTR Text, // The text string. [in] double X0, // X coordinate of text's starting point. [in] double Y0, // Y coordinate of text's starting point. [in] double Z0, // Z coordinate of text's starting point. [in] double Height, // Height of text object. [in, optional] VARIANT* Angle, // Rotation angle of text in radians. [in, optional] VARIANT* Width, // Width of text object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////// Blocks Groups and Hatches \\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a block in the Drawing object from the Graphic objects in the collection. * * @see TCADAPI TCWBlockCreate function */ [ helpcontext(0x10070056) ,helpstring("Creates a block in the Drawing object from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT CreateBlock( [in, optional] BSTR Name, // Name for the new block. [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [in, optional] VARIANT* CopyGraphics, // True to make the group using copies of the Graphic objects in the Graphics collection. [in, optional] VARIANT* InsertBlock, // True to insert the new block in the Drawing object. [in, out, optional] VARIANT* Insert, // The Insert Graphic object if InsertBlock was true [out, retval] Block** prop // The newly created block. ); /** * Adds a block insertion to the collection. * * @see TCADAPI TCWBlockInsert function */ [ helpcontext(0x10070057) ,helpstring("Adds a block insertion to the collection.") //,restricted, hidden ] HRESULT AddBlockInsertion( [in] VARIANT* Block, // BlockObj or index of the block. [in, optional] VARIANT* X0, // X coordinate of the block insertion point. [in, optional] VARIANT* Y0, // Y coordinate of the block insertion point. [in, optional] VARIANT* Z0, // Z coordinate of the block insertion point. [in, optional] VARIANT* XScale, // X scale factor. [in, optional] VARIANT* YScale, // Y scale factor. [in, optional] VARIANT* ZScale, // Z scale factor. [in, optional] VARIANT* Angle, // Rotation angle of block insertion in radians. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Adds a group to the collection from the Graphic objects in the collection. * * @see TCADAPI TCWGroupCreate function */ [ helpcontext(0x10070058) ,helpstring("Adds a group to the collection from the Graphic objects in the collection.") ,restricted, hidden ] HRESULT AddGroup( [in, optional] VARIANT* Name, // Name for the new group. [in, optional] VARIANT* Copy, // True to make the group using copies of the Graphic objects in the Graphics collection. [out, retval] IGraphic** prop // The newly created Graphic object. ); /** * Explodes groups and block insertions in the collection. * * @see TCADAPI TCWExplode function */ [ helpcontext(0x10070059) ,helpstring("Explodes groups and block insertions in the collection.") ,restricted, hidden ] HRESULT Explode( [out, retval] GraphicSet** prop // The exploded Graphic objects. ); /////////////////////////// Copy Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1007005A) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAbsolute( [in] double X, // X coordinate to copy to. [in] double Y, // Y coordinate to copy to. [in] double Z, // Z coordinate to copy to. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1007005B) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified offset is for last copy. [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection along a line. */ [ helpcontext(0x1007005C) ,helpstring("Copies the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT LinearCopyAngle( [in] double Length, // Length of copy. [in] double Angle, // Angle of copy in radians. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified length is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1007005D) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAbsolute( [in] double X0, // X coordinate of center of arc. [in] double Y0, // Y coordinate of center of arc. [in] double Z0, // Z coordinate of center of arc. [in] double X1, // X coordinate of point on arc. [in] double Y1, // Y coordinate of point on arc. [in] double Z1, // Z coordinate of point on arc. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in the collection radially. * Always rotates in the currently active workplane? */ [ helpcontext(0x1007005E) ,helpstring("Copies the Graphic objects in the collection radially.") ,restricted, hidden ] HRESULT RadialCopyAngle( [in] double X, // X coordinate of center of arc. [in] double Y, // Y coordinate of center of arc. [in] double Z, // Z coordinate of center of arc. [in] double Angle, // Angle between copies or for last copy. [in] double RotationAngle, // Angle to rotate each copy. [in] long Copies, // Number of copies including the original. [in, optional] VARIANT* Fit, // True if specified angle is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x1007005F) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyAbsolute( [in] double X, // Coordinate defining row and column spacing. [in] double Y, // Coordinate defining row and column spacing. [in] double Z, // Coordinate defining row and column spacing. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified point is for last copy. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Copies the Graphic objects in a two dimensional array. * Always translates in the currently active workplane? */ [ helpcontext(0x10070060) ,helpstring("Copies the Graphic objects in a two dimensional array.") ,restricted, hidden ] HRESULT ArrayCopyRelative( [in] double U, // Column offset. [in] double V, // Row offset. [in] long Rows, // Number of rows including the original. [in] long Columns, // Number of columns including the original. [in, optional] VARIANT* Fit, // True if specified offsets are for last copy. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The copied Graphic objects. ); /** * Mirrors the Graphic objects in the collection about a line. */ [ helpcontext(0x10070061) ,helpstring("Mirrors the Graphic objects in the collection about a line.") ,restricted, hidden ] HRESULT MirrorCopyLine( [in] double X0, // X coordinate of the first point on line. [in] double Y0, // Y coordinate of the first point on line. [in] double Z0, // Z coordinate of the first point on line. [in] double X1, // X coordinate of the second point on line. [in] double Y1, // Y coordinate of the second point on line. [in] double Z1, // Z coordinate of the second point on line. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Mirrors the Graphic objects in the collection about an angle. */ [ helpcontext(0x10070062) ,helpstring("Mirrors the Graphic objects in the collection about an angle.") ,restricted, hidden ] HRESULT MirrorCopyAngle( [in] double X, // X coordinate to mirror to. [in] double Y, // Y coordinate to mirror to. [in] double Z, // Z coordinate to mirror to. [in] double Angle, // Angle of mirror. [in, optional] VARIANT* Copy, // True if the mirrored objects are copies. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [in, optional] VARIANT* Workplane, // Workplane or direction vector? [in, out, optional] VARIANT* Matrix, // The matrix that was calculated. [out, retval] GraphicSet** prop // The mirrored Graphic objects. ); /** * Scales the Graphic objects in the collection. * * @see TCADAPI TCWSelectionScale function. */ [ helpcontext(0x10070063) ,helpstring("Scales the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Scale( [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10070064) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAxis( [in] double Angle, // Angle of rotation in radians. [in, optional] VARIANT* XAxis, // X coordinate of axis direction. [in, optional] VARIANT* YAxis, // Y coordinate of axis direction. [in, optional] VARIANT* ZAxis, // Z coordinate of axis direction. [in, optional] VARIANT* X, // X coordinate of the rotation center. [in, optional] VARIANT* Y, // Y coordinate of the rotation center. [in, optional] VARIANT* Z, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Rotates the Graphic objects in the collection. * * @see TCADAPI TCWSelectionRotate function. */ [ helpcontext(0x10070065) ,helpstring("Rotates the Graphic objects in the collection.") ,restricted, hidden ] HRESULT RotateAbsolute( [in] VARIANT* XTo, // X coordinate of the point to rotate to. [in] VARIANT* YTo, // Y coordinate of the point to rotate to. [in] VARIANT* ZTo, // Z coordinate of the point to rotate to. [in] VARIANT* XFrom, // X coordinate of the point to rotate from. [in] VARIANT* YFrom, // Y coordinate of the point to rotate from. [in] VARIANT* ZFrom, // Z coordinate of the point to rotate from. [in, optional] VARIANT* XRef, // X coordinate of the rotation center. [in, optional] VARIANT* YRef, // Y coordinate of the rotation center. [in, optional] VARIANT* ZRef, // Z coordinate of the rotation center. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection to a new location. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10070066) ,helpstring("Moves the Graphic objects in the collection to a new location.") ,restricted, hidden ] HRESULT MoveAbsolute( [in] double X, // X coordinate to move to. [in] double Y, // Y coordinate to move to. [in] double Z, // Z coordinate to move to. [in, optional] VARIANT* XRef, // X coordinate of the reference point. [in, optional] VARIANT* YRef, // Y coordinate of the reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the reference point. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Moves the Graphic objects in the collection by a specified offset. * * @see TCADAPI TCWSelectionMove function. */ [ helpcontext(0x10070067) ,helpstring("Moves the Graphic objects in the collection by a specified offset.") ,restricted, hidden ] HRESULT MoveRelative( [in] double X, // X offset. [in] double Y, // Y offset. [in] double Z, // Z offset. [out, retval] IMatrix** prop // The matrix that was calculated. ); /** * Transforms the Graphic objects in the collection. */ [ helpcontext(0x10070068) ,helpstring("Transforms the Graphic object.") ,restricted, hidden ] HRESULT Transform( [in] IMatrix* Transform // The matrix to perform transformation. ); ////////////////////// Miscellaneous Edit Methods \\\\\\\\\\\\\\\\\\\\ /** * Aligns the Graphic objects in the collection. * * @see TCADAPI TCWAlignXXX functions. */ [ helpcontext(0x10070069) ,helpstring("Aligns the Graphic objects in the collection.") ,restricted, hidden ] HRESULT Align( [in] ImsiAlignType AlignType // Bottom, middle, etc. ); /** * Aligns the Graphic objects in the collection along a line. */ [ helpcontext(0x1007006A) ,helpstring("Aligns the Graphic objects in the collection along a line.") ,restricted, hidden ] HRESULT AlignAlongLine( [in] double X0, // X coordinate of the first point. [in] double Y0, // Y coordinate of the first point. [in] double Z0, // Z coordinate of the first point. [in] double X1, // X coordinate of the second point. [in] double Y1, // Y coordinate of the second point. [in] double Z1 // Z coordinate of the second point. ); /** * Returns the index within the Graphics collection of the specified graphic handle. * Private. */ [ restricted ,helpcontext(0x1007006B) ,helpstring("Private. Returns the index within the Graphics collection of the specified graphic handle.") ] HRESULT _FindIndex( [in] long g, // The graphic handle. [out, retval] long* prop // The index. ); /** * Returns the Graphic objects in the collection that match a query string. * * @see TCADAPI TCWSelectByQuery function. */ [ helpcontext(0x1007006C) ,helpstring("Returns the Graphic objects in the collection that match a query string.") ,restricted, hidden ] HRESULT QuerySet( [in] BSTR Query, // The query string. [out, retval] GraphicSet** prop // The matching Graphic objects, as a GraphicSet__Object. ); /** * Creates and adds a group of polylines or polygons to the collection. */ [ helpcontext(0x1007006D) ,helpstring("Creates and adds a group of polylines or polygons to the collection.") ,restricted, hidden ] HRESULT AddPolys( [in] ImsiPolyType Type, // Type of poly(s) to be added. [in] VARIANT* Coords, // Array of (X, Y, Z) poly coordinates. [out, retval] GraphicSet** NewPolys // The newly created Graphic objects. ); /** * Generates a bounding polygon array to use in drag operations. * * @see View::DragOutline */ [ helpcontext(0x1007006E) ,helpstring("Generates a bounding polygon array to use in drag operations.") ,restricted, hidden ] HRESULT CreateDragOutline( [in, out] VARIANT* Coords // Array of (X, Y, Z) polygon coordinates. ); /** * Creates and adds a bunch of polylines to the collection. * The returned Graphics object contains a set with freshly created * polygons. The user can set properties, etc. */ [ helpcontext(0x1007006F) ,helpstring("Creates and adds a bunch of polylines to the collection.") ,restricted, hidden ] HRESULT AddPolylines( [in] long NumberOfPolylines, // number of polylines to create [in] VARIANT* Coords, // SafeArray of triplets of coordinates. [in] IMSI_BOOL closed, // whether each polyline is closed [out, retval] GraphicSet** NewPolys // The newly created set of Graphic objects. ); /** * Finds the Graphic object in the collection with the given ID. */ [ helpcontext(0x10070070) ,helpstring("Finds the Graphic object in the collection with the given ID.") ] HRESULT GraphicFromID( [in] long ID, // ID of Graphic object. [out, retval] IGraphic** prop // The Graphic object. ); /** * Creates and adds an attribute definition Graphic object to the collection. */ [ helpcontext(0x10070071) ,helpstring("Creates and adds an attribute definition Graphic object to the collection.") ,restricted, hidden ] HRESULT AddAttributeDefinition( [in] BSTR Tag, // The text string for the attribute definition tag. [in] double X0, // X coordinate of attdef's starting point. [in] double Y0, // Y coordinate of attdef's starting point. [in] double Z0, // Z coordinate of attdef's starting point. [in] double Height, // Height of attdef object. [in, optional] VARIANT* Angle, // Rotation angle of attdef in radians. [in, optional] VARIANT* Width, // Width of attdef object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [in, optional] VARIANT* AttFlags, // ImsiAttFlag values. [in, optional] VARIANT* Default, // Default value of attribute. [in, optional] VARIANT* Prompt, // Prompt for attribute. [out, retval] IGraphic** prop // The newly created Graphic object. ); ///////////////////////////////////////////////////////////////////////////// // GraphicSet methods /** * Returns the index of the item in the collection. */ [ propget ,hidden, restricted ,helpcontext(0x10070072) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10070073) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10070074) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x10070075) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,hidden, restricted ] HRESULT Duplicate( [in] BSTR Name, // The name for the new GraphicSet object. [out, retval] GraphicSet** prop // The duplicated GraphicSet object. ); /** * Sets the specific property for all graphics in the set. */ [ helpcontext(0x10070076) ,helpstring("Sets the specific property for all graphics in the set.") ] HRESULT SetForAll( [in] VARIANT* PropertyName, // The name of property to set. [in] VARIANT* prop // The Property value. ); /** * Adds a Region to the collection from the Graphic objects in the collection. * */ [ helpcontext(0x10070076) ,helpstring("Adds a Region to the collection from the Graphic objects in the collection.") ,hidden, restricted ] HRESULT AddRegion( [in, optional] VARIANT* pvarName ,[in, optional] VARIANT* pvarCopy ,[out, retval] IGraphic** prop // The newly GraphicObject. ); }; /** * The collection of GraphicSet objects in a Drawing object. */ [ object ,uuid(6A481135-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10080000) ,helpstring("The collection of GraphicSet objects in a Drawing object.") ] interface GraphicSets : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10080001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10080002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10080003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10080004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] GraphicSet** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10080005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDrawing** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10080006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates an empty GraphicSet object. */ [ helpcontext(0x10080007) ,helpstring("Creates an empty GraphicSet object.") ] HRESULT Add( [in, optional] VARIANT* Name, // The name of the GraphicSet object. [in, optional] VARIANT* Temporary, // True if the new GraphicSet object deletes on release. [out, retval] GraphicSet** prop // The new GraphicSet object. ); }; /** * A point in three dimensional space. * <p> * Vertex objects can be standaolone, or contained by a Graphic object. * Modifying a Vertex object allows for the reshaping of the parent Graphic * object. */ [ object ,uuid(6A48110C-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10090000) ,helpstring("A point in three dimension space.") ] interface IVertex : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10090001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the Vertex object is recalculated by the RegenMethod. */ [ propget ,helpcontext(0x10090002) ,helpstring("True if the Vertex object is recalculated by the RegenMethod.") ] HRESULT Calculated( [out, retval] IMSI_BOOL* prop // True if the Vertex object is recalculated by the RegenMethod. ); /** * True if the Vertex object is recalculated by the RegenMethod. */ [ propput ,helpcontext(0x10090002) ,helpstring("True if the Vertex object is recalculated by the RegenMethod.") ] HRESULT Calculated( [in] IMSI_BOOL prop // True if the Vertex object is recalculated by the RegenMethod. ); /** * True if the Vertex object can be edited in the user interface. */ [ propget ,helpcontext(0x10090003) ,helpstring("True if the Vertex object can be edited in the user interface.") ] HRESULT Editable( [out, retval] IMSI_BOOL* prop // True if the Vertex object can be edited in the user interface. ); /** * True if the Vertex object can be edited in the user interface. */ [ propput ,helpcontext(0x10090003) ,helpstring("True if the Vertex object can be edited in the user interface.") ] HRESULT Editable( [in] IMSI_BOOL prop // True if the Vertex object can be edited in the user interface. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10090004) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * True if the Vertex object can be linked to other Vertices. */ [ propget ,helpcontext(0x10090005) ,helpstring("True if the Vertex object can be linked to other Vertices.") ] HRESULT Linkable( [out, retval] IMSI_BOOL* prop // True if the Vertex object can be linked to other Vertices. ); /** * True if the Vertex object can be linked to other Vertices. */ [ propput ,helpcontext(0x10090005) ,helpstring("True if the Vertex object can be linked to other Vertices.") ] HRESULT Linkable( [in] IMSI_BOOL prop // True if the Vertex object can be linked to other Vertices. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10090006) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * True if the segment from the previous Vertex object to this one should be drawn. */ [ propget ,helpcontext(0x10090007) ,helpstring("True if the segment from the previous Vertex object to this one should be drawn.") ] HRESULT PenDown( [out, retval] IMSI_BOOL* prop // True if the segment from the previous Vertex object to this one should be drawn. ); /** * True if the segment from the previous Vertex object to this one should be drawn. */ [ propput ,helpcontext(0x10090007) ,helpstring("True if the segment from the previous Vertex object to this one should be drawn.") ] HRESULT PenDown( [in] IMSI_BOOL prop // True if the segment from the previous Vertex object to this one should be drawn. ); /** * True if the Vertex object can be selected in the user interface. */ [ propget ,helpcontext(0x10090008) ,helpstring("True if the Vertex object can be selected in the user interface.") ] HRESULT Selectable( [out, retval] IMSI_BOOL* prop // True if the Vertex object can be selected in the user interface. ); /** * True if the Vertex object can be selected in the user interface. */ [ propput ,helpcontext(0x10090008) ,helpstring("True if the Vertex object can be selected in the user interface.") ] HRESULT Selectable( [in] IMSI_BOOL prop // True if the Vertex object can be selected in the user interface. ); /** * True if the Vertex object can be snapped to in the user interface. */ [ propget ,helpcontext(0x10090009) ,helpstring("True if the Vertex object can be snapped to in the user interface.") ] HRESULT Snappable( [out, retval] IMSI_BOOL* prop // True if the Vertex object can be snapped to in the user interface. ); /** * True if the Vertex object can be snapped to in the user interface. */ [ propput ,helpcontext(0x10090009) ,helpstring("True if the Vertex object can be snapped to in the user interface.") ] HRESULT Snappable( [in] IMSI_BOOL prop // True if the Vertex object can be snapped to in the user interface. ); /** * The x component of the Vertex object's location. */ [ propget ,helpcontext(0x1009000A) ,helpstring("The x component of the Vertex object's location.") ] HRESULT X( [out, retval] double* prop // The x component of the Vertex object's location. ); /** * The x component of the Vertex object's location. */ [ propput ,helpcontext(0x1009000A) ,helpstring("The x component of the Vertex object's location.") ] HRESULT X( [in] double prop // The x component of the Vertex object's location. ); /** * The y component of the Vertex object's location. */ [ propget ,helpcontext(0x1009000B) ,helpstring("The y component of the Vertex object's location.") ] HRESULT Y( [out, retval] double* prop // The y component of the Vertex object's location. ); /** * The y component of the Vertex object's location. */ [ propput ,helpcontext(0x1009000B) ,helpstring("The y component of the Vertex object's location.") ] HRESULT Y( [in] double prop // The y component of the Vertex object's location. ); /** * The z component of the Vertex object's location. */ [ propget ,helpcontext(0x1009000C) ,helpstring("The z component of the Vertex object's location.") ] HRESULT Z( [out, retval] double* prop // The z component of the Vertex object's location. ); /** * The z component of the Vertex object's location. */ [ propput ,helpcontext(0x1009000C) ,helpstring("The z component of the Vertex object's location.") ] HRESULT Z( [in] double prop // The z component of the Vertex object's location. ); /** * Returns the internal handle associated with the Vertex object. * Private. */ [ propget ,restricted ,helpcontext(0x1009000D) ,helpstring("Private. Returns the internal handle associated with the Vertex object.") ] HRESULT _Handle( [out, retval] long* prop // The internal handle. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x1009000E) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x1009000F) ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [out, retval] IVertex** prop // The duplicated Vertex object. ); [ propget ,helpcontext(0x10090010) ,helpstring("True if the vertex is Bulge (belong to bulge polyline") ] HRESULT Bulge( [out, retval] IMSI_BOOL *pVal ); [ propput ,helpcontext(0x10090010) ,helpstring("True if the vertex is Bulge (belong to bulge polyline") ] HRESULT Bulge( [in] IMSI_BOOL newVal ); [ propget ,helpcontext(0x10090011) ,helpstring("True if the vertex is start segement width (ACAD polyline") ] HRESULT StartWidth( [out, retval] IMSI_BOOL *pVal ); [ propput ,helpcontext(0x10090011) ,helpstring("True if the vertex is start segement width (ACAD polyline") ] HRESULT StartWidth( [in] IMSI_BOOL newVal ); [ propget ,helpcontext(0x10090011) ,helpstring("True if the vertex is end segement width (ACAD polyline") ] HRESULT EndWidth( [out, retval] IMSI_BOOL *pVal ); [ propput ,helpcontext(0x10090011) ,helpstring("True if the vertex is end segement width (ACAD polyline") ] HRESULT EndWidth( [in] IMSI_BOOL newVal ); [ propget ,helpcontext(0x10090012) ,helpstring("Returns the Vertex object's database ID.") ] HRESULT ID( [out, retval] long *pVal ); [ propput ,helpcontext(0x10090012) ,helpstring("Sets the Vertex object's database ID.") ] HRESULT ID( [in] long newVal ); }; //%page /** * The collection of Vertex objects contained in a Graphic object. * <p> * Enumerates the Vertex objects in the collection. * Every Graphic object owns a Vertices collection, which define the geometry * of the Graphic object. */ [ object ,uuid(6A48110D-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100A0000) ,helpstring("A collection of Vertex objects.") ] interface Vertices : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100A0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x100A0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x100A0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IVertex** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100A0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x100A0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /* * Creates a new Vertex object and adds it to the collection. */ [ helpcontext(0x100A0006) ,helpstring("Creates a new Vertex object and adds it to the collection.") ] HRESULT Add( [in, optional] VARIANT* X, // X coordinate of the vertex. [in, optional] VARIANT* Y, // Y coordinate of the vertex. [in, optional] VARIANT* Z, // Z coordinate of the vertex. [in, optional] VARIANT* PenDown, // True if the segment to this vertex is drawn. [in, optional] VARIANT* Selectable, // True if the vertex can be selected. [in, optional] VARIANT* Snappable, // True if the vertex can be snapped to. [in, optional] VARIANT* Editable, // True if the vertex can be edited. [in, optional] VARIANT* Linkable, // True if the vertex can be linked to. [in, optional] VARIANT* Calculated, // True if the Vertex object is recalculated by the RegenMethod. [in, optional] VARIANT* Before, // Vertex object or index to follow this one. [in, optional] VARIANT* After, // Vertex object or index to precede this one. [out, retval] IVertex** prop // The newly created Vertex object. ); /** * Creates a new Vertex object and closes the collection's Graphic object. */ [ helpcontext(0x100A0007) ,helpstring("Creates a new Vertex object and closes the collection's Graphic object.") ] HRESULT AddClose( [in, optional] VARIANT* PenDown, // True if the segment to this vertex is drawn. [in, optional] VARIANT* Selectable, // True if the vertex can be selected. [in, optional] VARIANT* Snappable, // True if the vertex can be snapped to. [in, optional] VARIANT* Editable, // True if the vertex can be edited. [in, optional] VARIANT* Linkable, // True if the vertex can be linked to. [in, optional] VARIANT* Calculated, // True if the Vertex object is recalculated by the RegenMethod. [out, retval] IVertex** prop // The newly created Vertex object. ); /** * Adds an existing Vertex object to the collection. */ [ helpcontext(0x100A0008) ,helpstring("Adds an existing Vertex object to the collection.") ] HRESULT AddVertex( [in] IVertex* Vertex, // The Vertex object to be added. [in, optional] VARIANT* Before, // Vertex object or index to follow this one. [in, optional] VARIANT* After // Vertex object or index to precede this one. ); /** * Deletes the collection's Vertex objects. */ [ helpcontext(0x100A0009) ,helpstring("Deletes the collection's Vertex objects.") ] HRESULT Clear( [in, optional] VARIANT* Types // If supplied, the types of Vertex objects to delete. ); /** * Removes an item from the collection. */ [ helpcontext(0x100A000A) ,helpstring("Removes a Vertex object from the collection.") ] HRESULT Remove( [in] VARIANT* Index, // The index of item to be removed. [out, retval] IVertex** prop // The Vertex object that was removed. ); /** * Returns the index within the Vertices collection of the specified Vertex. * Private. */ [ restricted ,helpcontext(0x100A000B) ,helpstring("Private. Returns the index within the Vertices collection of the specified Vertex.") ] HRESULT _FindIndex( [in] long v, // The internal handle. [out, retval] long* prop // The index. ); /* * Returns the current coordinate system for items. */ [ propput ,helpcontext(0x100A000C) ,helpstring("True if items should be tronsform to world coordinate system for items.") ] HRESULT UseWorldCS( [in] IMSI_BOOL bUseWorldCS ); /* * Sets the world coordinate system for items. */ [ propget ,helpcontext(0x100A000C) ,helpstring("True if items are transforming to world coordinate system for items." ) ] HRESULT UseWorldCS( [out, retval] IMSI_BOOL* pbUseWorldCS ); }; /** * A named attribute of an object. * Can be an attribute of an Application object, a Drawing object, a Graphic object. * <P> * See the following pages for information on the names for standard properties: * <UL> * <LI><A HREF="appprops.html">Application Properties</A> * <LI><A HREF="dwgprops.html">Drawing Properties</A> * <LI><A HREF="grfprops.html">Graphic Properties</A> * </UL> */ [ object ,uuid(6A48110E-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100B0000) ,helpstring("A named attribute of an object.") ] interface Property : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100B0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the object is built-in. */ [ propget ,helpcontext(0x100B0002) ,helpstring("True if the object is built-in.") ] HRESULT Builtin( [out, retval] IMSI_BOOL* prop // True if the object is built-in. ); /** * Returns the type of the Property object's container. */ [ propget ,helpcontext(0x100B0003) ,helpstring("Returns the type of the Property object's container.") ] HRESULT Domain( [out, retval] ImsiDomain* prop // The type of the container. ); /** * Returns the Property object's internal ID number. */ [ propget ,helpcontext(0x100B0004) ,helpstring("Returns the Property object's internal ID number.") ] HRESULT ID( [out, retval] long* prop // The internal ID number. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x100B0005) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x100B0006) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100B0007) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * True if the value of the Property object cannot be modified. */ [ propget ,helpcontext(0x100B0008) ,helpstring("True if the value of the Property object cannot be modified.") ] HRESULT ReadOnly( [out, retval] IMSI_BOOL* prop // True if the value of the Property object cannot be modified. ); /** * True if the value of the Property object cannot be modified. */ [ propput ,helpcontext(0x100B0008) ,helpstring("True if the value of the Property object cannot be modified.") ] HRESULT ReadOnly( [in] IMSI_BOOL prop // True if the value of the Property object cannot be modified. ); /** * Returns the type of the Property object. * The value is specified as a VARTYPE enumeration. */ [ propget ,helpcontext(0x100B0009) ,helpstring("Returns the type of the Property object.") ] HRESULT Type( [out, retval] SHORT* prop // Returns the type of the Property object. ); /** * Returns the value of the Property object. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x100B000A) ,helpstring("Returns the value of the Property object.") ] HRESULT Value( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] VARIANT* prop // The value, as a variant. ); /** * Sets the value of the Property object. */ [ propput ,id(DISPID_VALUE) ,helpcontext(0x100B000A) ,helpstring("Sets the value of the Property object.") ] HRESULT Value( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] VARIANT* prop // The value, set by reference. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x100B000B) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x100B000C) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [in] BSTR Name, // A name for the new Property object. [out, retval] Property** prop // The duplicated Property object. ); /** * True if the object is an attribute. */ [ propget ,helpcontext(0x100B000D) ,helpstring("True if the object is an attribute.") ] HRESULT IsAttribute( [out, retval] IMSI_BOOL* prop // True if the object is an attribute. ); }; /** * A collection of Property objects. * <P> * See the following pages for information on the names for standard properties: * <UL> * <LI><A HREF="appprops.html">Application Properties</A> * <LI><A HREF="dwgprops.html">Drawing Properties</A> * <LI><A HREF="grfprops.html">Graphic Properties</A> * </UL> */ [ object ,uuid(6A48110F-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100C0000) ,helpstring("A collection of TurboCAD properties.") ] interface Properties : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100C0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x100C0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x100C0003) , helpstring("Returns part of a collection.")] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Property** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100C0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x100C0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Creates a new Property object and adds it to the collection, optionally setting a value. */ [ helpcontext(0x100C0006) ,helpstring("Creates a new Property object and adds it to the collection, optionally setting a value.") ] HRESULT Add( [in] BSTR Name, // Name of the new Property object. [in, optional] VARIANT* Value, // The value of the new Property object, by reference. [in, optional] VARIANT* ReadOnly, // True if the new Property object's value cannot be modified. [in, optional] VARIANT* ID, // Internal ID. [out, retval] Property** prop // The newly created Property object. ); /** * Display property editing dialog or browser. * Only implemented on Graphic properties. */ [ helpcontext(0x100C0007) ,helpstring("Display property editing dialog or browser.") ,restricted, hidden ] HRESULT Edit( ); /** * Returns the ids, names and types of the collection. * Some remarks. */ [ helpcontext(0x100C0008) ,helpstring("Returns the ids, names and types of the collection.") ] HRESULT Enumerate( [out] VARIANT* IDs, // An array of longs. [out] VARIANT* Names, // An array of strings. [out] VARIANT* Types // An array of longs. ); }; /** * An object which controls the mapping from view space to the client area of a Window. */ [ object ,uuid(6A481110-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100D0000) ,helpstring("An object which controls the mapping from view space to the client area of a Window.") ] interface View : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100D0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the camera that controls the View object. */ [ propget ,helpcontext(0x100D0002) ,helpstring("Returns the Camera object that controls the View object.") ] HRESULT Camera( [out, retval] ICamera** prop // The Camera object. ); /** * Sets the camera that controls the View object. */ [ propput ,helpcontext(0x100D0002) ,helpstring("Sets the Camera object that controls the View object.") ] HRESULT Camera( [in] ICamera* prop // The Camera object. ); /** * True if the View object's extents are centered within the Window. */ [ propget ,helpcontext(0x100D0003) ,helpstring("True if the View object's extents are centered within the Window.") ] HRESULT CenterOnExtents( [out, retval] IMSI_BOOL* prop // True if extents are centered. ); /** * True if the View object's extents are centered within the Window. */ [ propput ,helpcontext(0x100D0003) ,helpstring("True if the View object's extents are centered within the Window.") ] HRESULT CenterOnExtents( [in] IMSI_BOOL prop // True if extents are centered. ); /** * Returns the DC associated with this View object. */ [ propget ,helpcontext(0x100D0004) ,helpstring("Returns the DC associated with this View object.") ] HRESULT DC( [out, retval] long* prop // The DC. ); /** * Sets the DC associated with this View object. */ [ propput ,helpcontext(0x100D0004) ,helpstring("Sets the DC associated with this View object.") ] HRESULT DC( [in] long prop // The DC. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x100D0005) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * True if the View object's mapping is isotropic. */ [ propget ,helpcontext(0x100D0006) ,helpstring("True if the View object's mapping is isotropic.") ] HRESULT FixedAspectRatio( [out, retval] IMSI_BOOL* prop // True if mapping is isotropic. ); /** * True if the View object's mapping is isotropic. */ [ propput ,helpcontext(0x100D0006) ,helpstring("True if the View object's mapping is isotropic.") ] HRESULT FixedAspectRatio( [in] IMSI_BOOL prop // True if mapping is isotropic. ); /** * The HWND value of the View object's display Window. */ [ propget ,helpcontext(0x100D0007) ,helpstring("The HWND value of the View object's display Window.") ] HRESULT HWND( [out, retval] long* prop // The HWND value. ); /** * The HWND value of the View object's display Window. */ [ propput ,helpcontext(0x100D0007) ,helpstring("The HWND value of the View object's display Window.") ] HRESULT HWND( [in] long prop // The HWND value. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x100D0008) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the mapping mode of the View object's display Window. */ [ propget ,helpcontext(0x100D0009) ,helpstring("Returns the mapping mode of the View object's display Window.") ] HRESULT MappingMode( [out, retval] long* prop // The Windows mapping mode. ); /** * Sets the mapping mode of the View object's display Window. */ [ propput ,helpcontext(0x100D0009) ,helpstring("Sets the mapping mode of the View object's display Window.") ] HRESULT MappingMode( [in] long prop // The Windows mapping mode. ); /** * True if the View object's display window is inset within its client rectangle. */ [ propget ,helpcontext(0x100D000A) ,helpstring("True if the View object's display window is inset within its client rectangle.") ] HRESULT Margins( [out, retval] IMSI_BOOL* prop // True if window is inset. ); /** * True if the View object's display window is inset within its client rectangle. */ [ propput ,helpcontext(0x100D000A) ,helpstring("True if the View object's display window is inset within its client rectangle.") ] HRESULT Margins( [in] IMSI_BOOL prop // True if window is inset. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x100D000B) ,helpstring("Returns the name of the object, as a string.") ,restricted, hidden ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Sets the name of the object. */ [ propput ,helpcontext(0x100D000B) ,helpstring("Sets the name of the object.") ,restricted, hidden ] HRESULT Name( [in] BSTR prop // The name of the object. ); /** * The height in the View object's screen space. */ [ propget ,helpcontext(0x100D000C) ,helpstring("The height in the View object's screen space.") ] HRESULT ScreenHeight( [out, retval] double* prop // Height of screen space. ); /** * The height in the View object's screen space. */ [ propput ,helpcontext(0x100D000C) ,helpstring("The height in the View object's screen space.") ] HRESULT ScreenHeight( [in] double prop // Height of screen space. ); /** * The x coordinate of the left hand side of the View object's screen space. */ [ propget ,helpcontext(0x100D000D) ,helpstring("The x coordinate of the left hand side of the View object's screen space.") ] HRESULT ScreenLeft( [out, retval] double* prop // Left side of screen space. ); /** * The x coordinate of the left hand side of the View object's screen space. */ [ propput ,helpcontext(0x100D000D) ,helpstring("The x coordinate of the left hand side of the View object's screen space.") ] HRESULT ScreenLeft( [in] double prop // Left side of screen space. ); /** * The y coordinate of the top of the View object's screen space. */ [ propget ,helpcontext(0x100D000E) ,helpstring("The y coordinate of the top of the View object's screen space.") ] HRESULT ScreenTop( [out, retval] double* prop // Top of screen space. ); /** * The y coordinate of the top of the View object's screen space. */ [ propput ,helpcontext(0x100D000E) ,helpstring("The y coordinate of the top of the View object's screen space.") ] HRESULT ScreenTop( [in] double prop // Top of screen space. ); /** * The width in the View object's screen space. */ [ propget ,helpcontext(0x100D000F) ,helpstring("The width in the View object's screen space.") ] HRESULT ScreenWidth( [out, retval] double* prop // Width of screen space. ); /** * The width in the View object's screen space. */ [ propput ,helpcontext(0x100D000F) ,helpstring("The width in the View object's screen space.") ] HRESULT ScreenWidth( [in] double prop // Width of screen space. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100D0010) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDrawing** prop // The parent object. ); /** * True if changes to the View object parameters will be immmediately reflected. */ [ propget ,helpcontext(0x100D0011) ,helpstring("True if changes to the View object parameters will be immmediately reflected.") ] HRESULT Update( [out, retval] IMSI_BOOL* prop // True if parameters are updated immediately. ); /** * True if changes to the View object parameters will be immmediately reflected. */ [ propput ,helpcontext(0x100D0011) ,helpstring("True if changes to the View object parameters will be immmediately reflected.") ] HRESULT Update( [in] IMSI_BOOL prop // True if parameters are updated immediately. ); /** * The height in the View object's view space. */ [ propget ,helpcontext(0x100D0012) ,helpstring("The height in the View object's view space.") ] HRESULT ViewHeight( [out, retval] double* prop // Height of view space. ); /** * The height in the View object's view space. */ [ propput ,helpcontext(0x100D0012) ,helpstring("The height in the View object's view space.") ] HRESULT ViewHeight( [in] double prop // Height of view space. ); /** * The x coordinate of the left hand side of the View object's view space. */ [ propget ,helpcontext(0x100D0013) ,helpstring("The x coordinate of the left hand side of the View object's view space.") ] HRESULT ViewLeft( [out, retval] double* prop // Left side of view space. ); /** * The x coordinate of the left hand side of the View object's view space. */ [ propput ,helpcontext(0x100D0013) ,helpstring("The x coordinate of the left hand side of the View object's view space.") ] HRESULT ViewLeft( [in] double prop // Left side of view space. ); /** * The y coordinate of the top of the View object's view space. */ [ propget ,helpcontext(0x100D0014) ,helpstring("The y coordinate of the top of the View object's view space.") ] HRESULT ViewTop( [out, retval] double* prop // Top of view space. ); /** * The y coordinate of the top of the View object's view space. */ [ propput ,helpcontext(0x100D0014) ,helpstring("The y coordinate of the top of the View object's view space.") ] HRESULT ViewTop( [in] double prop // Top of view space. ); /** * The width in the View object's view space. */ [ propget ,helpcontext(0x100D0015) ,helpstring("The width in the View object's view space.")] HRESULT ViewWidth( [out, retval] double* prop // Width of view space. ); /** * The width in the View object's view space. */ [ propput ,helpcontext(0x100D0015) ,helpstring("The width in the View object's view space.") ] HRESULT ViewWidth( [in] double prop // Width of view space. ); /** * Returns the internal handle associated with the View object. * Private. */ [ propget ,restricted ,helpcontext(0x100D0016) ,helpstring("Private. Returns the internal handle associated with the View object.") ] HRESULT _Handle( [out, retval] long* prop // The internal handle. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Closes the bitmap DC, and returns a bitmap handle. */ [ helpcontext(0x100D0017) ,helpstring("Closes the bitmap DC, and returns a bitmap handle.") ] HRESULT CloseBitmapDC( [out, retval] long* prop // The bitmap handle. ); /** * Closes the metafile DC, and returns a metafile handle. */ [ helpcontext(0x100D0018) ,helpstring("Closes the metafile DC, and returns a metafile handle.") ] HRESULT CloseMetafileDC( [out, retval] long* prop // The metafile handle. ); /** * Deletes the object. */ [ helpcontext(0x100D0019) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Opens a DC for bitmap drawing. */ [ helpcontext(0x100D001A) ,helpstring("Opens a DC for bitmap drawing.") ] HRESULT OpenBitmapDC( [out, retval] long* prop // The bitmap DC. ); /** * Opens a DC for metafile drawing. */ [ helpcontext(0x100D001B) ,helpstring("Opens a DC for metafile drawing.") ] HRESULT OpenMetafileDC( [out, retval] long* prop // The metafile DC. ); /** * Pick Graphic objects at a point in view coordinate system. */ [ helpcontext(0x100D001C) ,helpstring("Pick Graphic objects at a point in view coordinate system.") ] HRESULT PickPoint( [in] double X, // X coordinate of point in view coordinate system. [in] double Y, // Y coordinate of point in view coordinate system. [in, optional] VARIANT* Aperture, // Size of aperture in pixels. [in, optional] VARIANT* TopLevel, // True if only top level Graphic object's are to be picked. [in, optional] VARIANT* Arcs, // True if arcs should be returned in pick. [in, optional] VARIANT* Text, // True if text should be returned in pick. [in, optional] VARIANT* Segments, // True if only segments should be returned in pick. [in, optional] VARIANT* Blocks, // True if segments in blocks should be returned in pick. [in, optional] VARIANT* Invisible, // True if invisible segements can be picked. [out, retval] PickResult** prop // The sorted results of the pick operation. ); /** * Pick Graphic objects within a rectangle in the view coordinate system. */ [ helpcontext(0x100D001D) ,helpstring("Pick Graphic objects within a rectangle in the view coordinate system.") ] HRESULT PickRect( [in] double Left, // X coordinate of left side of rectangle in the view coordinate system. [in] double Top, // Y coordinate of top of rectangle in the view coordinate system. [in] double Right, // X coordinate of right side of rectangle in the view coordinate system. [in] double Bottom, // Y coordinate of bottom of rectangle in the view coordinate system. [in, optional] VARIANT* TopLevel, // True if only top level Graphic object's are to be picked. [in, optional] VARIANT* Arcs, // True if arcs should be returned in pick. [in, optional] VARIANT* Text, // True if text should be returned in pick. [in, optional] VARIANT* Segments, // True if only segments should be returned in pick. [in, optional] VARIANT* Blocks, // True if segments in blocks should be returned in pick. [in, optional] VARIANT* Invisible, // True if invisible segements can be picked. [out, retval] PickResult** prop // The sorted results of the pick operation. ); /** * Pick Graphic objects within a screen polygon. */ [ helpcontext(0x100D001E) ,helpstring("Pick Graphic objects within a screen polygon.") ,restricted, hidden ] HRESULT PickPolygon( [in] IGraphic* Polygon, // The polygon specified in screen coordinates, Z ignored. [in, optional] VARIANT* TopLevel, // True if only top level Graphic object's are to be picked. [in, optional] VARIANT* Arcs, // True if arcs should be returned in pick. [in, optional] VARIANT* Text, // True if text should be returned in pick. [in, optional] VARIANT* Segments, // True if only segments should be returned in pick. [in, optional] VARIANT* Blocks, // True if segments in blocks should be returned in pick. [in, optional] VARIANT* Invisible, // True if invisible segements can be picked. [out, retval] PickResult** prop // The sorted results of the pick operation. ); /** * Pick Graphic objects within a three dimensional bounding box. */ [ helpcontext(0x100D001F) ,helpstring("Pick Graphic objects within a three dimensional bounding box.") ,restricted, hidden ] HRESULT PickCube( [in] double XMin, // Minimum x coordinate of bounding box. [in] double YMin, // Minimum y coordinate of bounding box. [in] double ZMin, // Minimum z coordinate of bounding box. [in] double XMax, // Maximum x coordinate of bounding box. [in] double YMax, // Maximum y coordinate of bounding box. [in] double ZMax, // Maximum z coordinate of bounding box. [in, optional] VARIANT* TopLevel, // True if only top level Graphic object's are to be picked. [in, optional] VARIANT* Arcs, // True if arcs should be returned in pick. [in, optional] VARIANT* Text, // True if text should be returned in pick. [in, optional] VARIANT* Segments, // True if only segments should be returned in pick. [in, optional] VARIANT* Blocks, // True if segments in blocks should be returned in pick. [in, optional] VARIANT* Invisible, // True if invisible segements can be picked. [out, retval] PickResult** prop // The sorted results of the pick operation. ); /** * Repaint the Drawing object in this View object. */ [ helpcontext(0x100D0020) ,helpstring("Repaint the drawing on the View object.") ] HRESULT Refresh( ); /** * Transforms (2D) coordinates from screen space to view space. */ [ helpcontext(0x100D0021) ,helpstring("Transforms (2D) coordinates from screen space to view space.") ] HRESULT ScreenToView( [in] double XScreen, // X coordinate in screen space. [in] double YScreen, // Y coordinate in screen space. [out] double* XView, // X coordinate in view space. [out] double* YView // Y coordinate in view space. ); /** * Transforms (2D) coordinates from view space to screen space. */ [ helpcontext(0x100D0022) ,helpstring("Transforms (2D) coordinates from view space to screen space.") ] HRESULT ViewToScreen( [in] double XView, // X coordinate in view space. [in] double YView, // Y coordinate in view space. [out] double* XScreen, // X coordinate in screen space. [out] double* YScreen, // Y coordinate in screen space. [out, retval] IMSI_BOOL* prop // TRUE if transformed point is within Screen rectangle. ); /** * Set the View object's extents to those of the drawing. */ [ helpcontext(0x100D0023) ,helpstring("Set the View object's extents to those of the drawing.") ] HRESULT ZoomToExtents( ); /** * Return coordinates of a point in view coordinate system. */ [ helpcontext(0x100D0024) ,helpstring("Return coordinates of a point in view coordinate system.") ] HRESULT GetMouseClick( [out] double* X, // X coordinate of point in view coordinate system. [out] double* Y // Y coordinate of point in view coordinate system. ); [ helpcontext(0x100D0025) ,helpstring("Private pick method.") ] HRESULT _PickPoint( [in] double X, [in] double Y, [in] double Aperture, [in] long Snap, [in] long GGD, [in] IMSI_BOOL bTopLevel, [in] IMSI_BOOL bInvisible, [out, retval] PickResult** prop ); [ helpcontext(0x100D0026) ,helpstring("Private pick method.") ] HRESULT _PickRect( [in] double Left, [in] double Top, [in] double Right, [in] double Bottom, [in] long Snap, [in] long GGD, [in] IMSI_BOOL bTopLevel, [in] IMSI_BOOL bInvisible, [out, retval] PickResult** prop ); [ helpcontext(0x100D0027) ,helpstring("Private pick method.") ] HRESULT _VirtualIntersection( [in] long v, [in] long g1, [in] long g2, [out, retval] PickResult** prop ); /** * Begin, continue or end a drag operation. */ [ helpcontext(0x100D0028) ,helpstring("Begin, continue or end a drag operation.") ] HRESULT DragOutline( [in] VARIANT* Coords, // Array of (X, Y, Z) polygon coordinates. [in] double XScreen, // X coordinate of point in screen coordinate system. [in] double YScreen, // Y coordinate of point in screen coordinate system. [in, optional] VARIANT* DragState // Begin, continue or end of drag operation ); /** * Repaint the Drawing object in this View object. */ [ helpcontext(0x100D0029) ,helpstring("Invalidate the extents of a Graphic object or Graphics Collection") ] HRESULT InvalidateObject( [in] IDispatch* Object ); [ helpcontext(0x100D002A) ,helpstring("Invalidate a part of the View object.") ] HRESULT InvalidateScreenRect( [in] double Left, [in] double Top, [in] double Width, [in] double Height ); [ helpcontext(0x100D002B) ,helpstring("Invalidate a part of the View object.") ] HRESULT InvalidateViewRect( [in] double Left, [in] double Top, [in] double Width, [in] double Height ); [ propget ,helpcontext(0x100D002C) ,helpstring("True if the View object's redraws the entire view on Refresh.") ] HRESULT AutoRedraw( [out, retval] IMSI_BOOL* prop // True to redraw the entire view. ); [ propput ,helpcontext(0x100D002C) ,helpstring("True if the View object's redraws the entire view on Refresh.") ] HRESULT AutoRedraw( [in] IMSI_BOOL prop // True to redraw the entire view. ); /** * Zooms the View object to a NamedView object */ [ helpcontext(0x100D002D) ,helpstring("Zooms the View object to a NamedView object") ] HRESULT ZoomToNamedView( VARIANT* NamedView // NamedView object or its name or index. ); [ helpcontext(0x100D002E) ,helpstring("Continue or end a rotating drag operation.") ] HRESULT RotateDragOutline( [in] VARIANT* Coords, // Array of (X, Y, Z) polygon coordinates. [in] double Angle, // Angle of rotation in radians, counterclockwise positive. [in, optional] VARIANT* DragState // Continue or end of drag operation ); [ propget, ,restricted ,helpcontext(0x100D002F) ,helpstring("Private, Returns the View object's matrix.") ] HRESULT _Matrix( [out, retval] IMatrix** prop // True to redraw the entire view. ); [ propput ,restricted ,helpcontext(0x100D002F) ,helpstring("Private, sets theView's object's matrix") ] HRESULT _Matrix( [in] IMatrix *prop ); [ propget ,helpcontext(0x100D0030) ,helpstring("property SpaceMode") ] HRESULT SpaceMode( [out, retval] ImsiSpaceModeType *pVal ); [ propput ,helpcontext(0x100D0030) ,helpstring("property SpaceMode") ] HRESULT SpaceMode( [in] ImsiSpaceModeType newVal ); [ propget ,helpcontext(0x100D0031) ,helpstring("property ExternalView") ] HRESULT ExternalView( [out, retval] IMSI_BOOL *pVal ); [ propput ,helpcontext(0x100D0031) ,helpstring("property ExternalView") ] HRESULT ExternalView( [in] IMSI_BOOL newVal ); /** * Transforms (3D) coordinates from world CS to view CS. */ [ helpcontext(0x100D0032) ,helpstring("Transforms (3D) coordinates from world CS to view CS.") ] HRESULT WorldToView( [in] double XWorld, // X coordinate in screen space. [in] double YWorld, // Y coordinate in screen space. [in] double ZWorld, // Z coordinate in screen space. [out] double* XView, // X coordinate in view space. [out] double* YView, // Y coordinate in view space. [out] double* ZView // Z coordinate in view space. ); /** * Transforms (3D) coordinates from view CS to world CS. */ [ helpcontext(0x100D0033) ,helpstring("Transforms (3D) coordinates from view CS to world CS.") ] HRESULT ViewToWorld( [in] double XView, // X coordinate in view space. [in] double YView, // Y coordinate in view space. [in] double ZView, // Y coordinate in view space. [out] double* XWorld, // X coordinate in screen space. [out] double* YWorld, // Y coordinate in screen space. [out] double* ZWorld // Z coordinate in screen space. ); /////////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ /** * Returns the RenderView that controls the View object. */ [ propget ,helpcontext(0x100D0034) ,helpstring("Returns the RenderView object that controls the View object.") ] HRESULT RenderView( [out, retval] IDispatch** prop // The RenderView object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ /** * Closes the bitmap DC, and returns a bitmap bits in SAFEARRAY. */ [ helpcontext(0x100D0035) ,helpstring("Closes the bitmap DC, and returns a bitmap bits in SAFEARRAY.") ] HRESULT CloseBitmapBitsDC( [out, retval] VARIANT* prop // The bitmap bits as SAFEARRA. ); /** * Closes the metafile DC, and returns a metafile bits in SAFEARRAY. */ [ helpcontext(0x100D0036) ,helpstring("Closes the metafile DC, and returns a metafile bits in SAFEARRAY.") ] HRESULT CloseMetafileBitsDC( [out, retval] VARIANT* prop // The metafile bits in SAFEARRAY ); /** * Closes the bitmap DC, and returns a bitmap bits in SAFEARRAY. */ [ helpcontext(0x100D0037) ,helpstring("Closes the bitmap DC, and returns a a Picture object.") ] HRESULT CloseBitmapPictDC( [out, retval] IDispatch** prop // The Picture object. ); /** * Closes the metafile DC, and returns a metafile bits in SAFEARRAY. */ [ helpcontext(0x100D0038) ,helpstring("Closes the metafile DC, and returns a Picture object.") ] HRESULT CloseMetafilePictDC( [out, retval] IDispatch** prop // The Picture object. ); /////////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/ /** * Returns the PaperSpace object that this View object display. */ [ propget ,helpcontext(0x100D0039) ,helpstring("property PaperSpace") ] HRESULT PaperSpace( [out, retval] IDispatch** prop ); /** * Sets the PaperSpace object that this View object display. */ [ propput ,helpcontext(0x100D0039) ,helpstring("property PaperSpace") ] HRESULT PaperSpace( [in] VARIANT* prop ); /** * Returns the ID of the LayersSet object that this View object display. */ [ propget ,helpcontext(0x100D003A) ,helpstring("ID of the LayersSet object that this View object display ") ] HRESULT LayersSetID( [out, retval] long* prop ); /** * Sets the PaperSpace object that this View object display. */ [ propput ,helpcontext(0x100D003A) ,helpstring("ID of the LayersSet object that this View object display") ] HRESULT LayersSetID( [in] long prop ); }; /** * The collection of View objects in a Drawing object. */ [ object ,uuid(6A481111-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100E0000) ,helpstring("A collection of TurboCAD viewports.") ] interface Views : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100E0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x100E0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x100E0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] View** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100E0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDrawing** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x100E0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a View object to the collection. */ [ helpcontext(0x100E0006) ,helpstring("Adds a View object to the collection.") ] HRESULT Add( [in, optional] VARIANT* hWnd, // A window handle to attach to the View object. [in, optional] VARIANT* hDC, // A DC to attach to the View object. [out, retval] View** prop // The newly created View object. ); /** * Repaint the Drawing object on all the View objects in the collection. */ [ helpcontext(0x100E0007) ,helpstring("Repaint the drawing on the all the View objects in the collection.") ] HRESULT Refresh( ); /** * Returns the index within the Views collection of the specified viewport handle. * Private. */ [ restricted ,helpcontext(0x100E0008) ,helpstring("Private. Returns the index within the Views collection of the specified viewport handle.") ] HRESULT _FindIndex( [in] long vp, // The viewport handle. [out, retval] long* prop // The index. ); [ helpcontext(0x100E0009) ,helpstring("Invalidate the extents of a Graphic object or Graphics Collection.") ] HRESULT InvalidateObject( [in] IDispatch* Object ); }; /** * A TurboCAD camera. */ [ object ,uuid(6A481112-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x100F0000) ,helpstring("A TurboCAD camera.") ] interface ICamera : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x100F0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Camera object's back clipping distance. */ [ propget ,helpcontext(0x100F0002) ,helpstring("Returns the Camera object's back clipping distance.") ,restricted, hidden ] HRESULT BackClip( [out, retval] double* prop // The back clipping distance. ); /** * Sets the Camera object's back clipping distance. */ [ propput ,helpcontext(0x100F0002) ,helpstring("Sets the Camera object's back clipping distance.") ,restricted, hidden ] HRESULT BackClip( [in] double prop // The back clipping distance. ); /** * Returns the Camera object's direction vector. */ [ propget ,helpcontext(0x100F0003) ,helpstring("Returns the Camera object's direction vector.") ] HRESULT Direction( [out, retval] IVertex** prop // The normalized direction vector, as a Vertex object. ); /** * Sets the Camera object's direction vector. */ [ propput ,helpcontext(0x100F0003) ,helpstring("Sets the Camera object's direction vector.") ] HRESULT Direction( [in] IVertex* prop // The direction vector, as a Vertex object. ); /** * Returns the Camera object's field of view. */ [ propget ,helpcontext(0x100F0004) // ,helpstring("Returns the Camera object's field of view.") ,helpstring("Returns the Camera object's perspective angle.") ] HRESULT PerspectiveAngle( [out, retval] double* prop // The perspective angle of camera. ); /** * Sets the Camera object's field of view. */ [ propput ,helpcontext(0x100F0004) // ,helpstring("Sets the Camera object's field of view.") ,helpstring("Returns the Camera object's perspective angle.") ] HRESULT PerspectiveAngle( [in] double prop // The perspective angle of camera. ); /** * Returns the Camera object's front clipping distance. */ [ propget ,helpcontext(0x100F0005) ,helpstring("Returns the Camera object's front clipping distance.") ,restricted, hidden ] HRESULT FrontClip( [out, retval] double* prop // The front clipping distance. ); /** * Sets the Camera object's front clipping distance. */ [ propput ,helpcontext(0x100F0005) ,helpstring("Sets the Camera object's front clipping distance.") ,restricted, hidden ] HRESULT FrontClip( [in] double prop // The front clipping distance. ); /** * Returns the Camera object's location. */ [ propget ,helpcontext(0x100F0006) ,helpstring("Returns the Camera object's location.") ] HRESULT Location( [out, retval] IVertex** prop // The location, as a Vertex object. ); /** * Sets the Camera object's location. */ [ propput ,helpcontext(0x100F0006) ,helpstring("Sets the Camera object's location.") ] HRESULT Location( [in] IVertex* prop // The location, as a Vertex object. ); /** * Returns the Camera object's point of interest. */ [ propget ,helpcontext(0x100F0007) ,helpstring("Returns the Camera object's point of interest.") ] HRESULT LookAt( [out, retval] IVertex** prop // The point of interest, as a Vertex object. ); /** * Sets the Camera object's point of interest. */ [ propput ,helpcontext(0x100F0007) ,helpstring("Sets the Camera object's point of interest.") ] HRESULT LookAt( [in] IVertex* prop // The point of interest, as a Vertex object. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x100F0008) ,helpstring("Returns the name of the object, as a string.") ,restricted, hidden ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x100F0009) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the Camera object's projection type. */ [ propget ,helpcontext(0x100F000A) ,helpstring("Returns the Camera object's projection type.") ,restricted, hidden ] HRESULT ProjectionType( [out, retval] ImsiProjection* prop // The projection type. ); /** * Sets the Camera object's projection type. */ [ propput ,helpcontext(0x100F000A) ,helpstring("Sets the Camera object's projection type.") ,restricted, hidden ] HRESULT ProjectionType( [in] ImsiProjection prop // The projection type. ); /** * Returns the Camera object's right vector. */ [ propget ,helpcontext(0x100F000B) ,helpstring("Returns the Camera object's right vector.") ] HRESULT Right( [out, retval] IVertex** prop // The normalized right vector, as a Vertex object. ); /** * Sets the Camera object's right vector. */ [ propput ,helpcontext(0x100F000B) ,helpstring("Sets the Camera object's right vector.") ] HRESULT Right( [in] IVertex* prop // The right vector, as a Vertex object. ); /** * Returns the Camera object's up vector. */ [ propget ,helpcontext(0x100F000C) ,helpstring("Returns the Camera object's up vector.") ] HRESULT Up( [out, retval] IVertex** prop // The normalized up vector, as a Vertex object. ); /** * Sets the Camera object's up vector. */ [ propput ,helpcontext(0x100F000C) ,helpstring("Sets the Camera object's up vector.") ] HRESULT Up( [in] IVertex* prop // The up vector, as a Vertex object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x100F000D) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [out, retval] ICamera** prop // The duplicated Camera object. ); /** * Orbits the Camera object about the point of interest. */ [ helpcontext(0x100F000E) ,helpstring("Orbits the Camera object about the point of interest.") ] HRESULT Orbit( [in] double Angle, // The rotation angle in radians. [in, optional] VARIANT* CameraCoordinates, // True to use camera's coordinate system. [in, optional] VARIANT* XOrRight, // The x or right coordinate of the rotation axis. [in, optional] VARIANT* YOrUp, // The y or up coordinate of the rotation axis. [in, optional] VARIANT* ZOrDirection // The z or direction coordinate of the rotation axis. ); /** * Tilts the Camera object left or right. */ [ helpcontext(0x100F000F) ,helpstring("Tilts the Camera object left or right.") ] HRESULT Pan( [in] double AngleRight // The angle to tilt to the right in radians. ); /** * Rotates the Camera object about an arbitrary axis. */ [ helpcontext(0x100F0010) ,helpstring("Rotates the Camera object about an arbitrary axis.") ] HRESULT Rotate( [in] double Angle, // The rotation angle in radians. [in, optional] VARIANT* CameraCoordinates, // True to use camera's coordinate system. [in, optional] VARIANT* XOrRight, // The x or right coordinate of the rotation axis. [in, optional] VARIANT* YOrUp, // The y or up coordinate of the rotation axis. [in, optional] VARIANT* ZOrDirection // The z or direction coordinate of the rotation axis. ); /** * Slides the Camera object perpendicular to its direction vector. */ [ helpcontext(0x100F0011) ,helpstring("Slides the Camera object perpendicular to its direction vector.") ] HRESULT Slide( [in] double DistanceUp, // The distance to slide in the up direction. [in] double DistanceRight // The distance to slide in the right direction. ); /** * Tilts the Camera object up or down. */ [ helpcontext(0x100F0012) ,helpstring("Tilts the Camera object up or down.") ] HRESULT Tilt( [in] double AngleUp // The angle to tilt up in radians. ); /** * Moves the Camera object along its direction vector. */ [ helpcontext(0x100F0013) ,helpstring("Moves the Camera object along its direction vector.") ] HRESULT Track( [in] double DistanceForward // The distance to move. ); /** * Zooms the focal length of the Camera object. */ [ helpcontext(0x100F0014) ,helpstring("Zooms the focal length of the Camera object.") ] HRESULT Zoom( [in] double ZoomFactor // The amount of zoom. ); /** * Set All camera vectors : Pos, Look, Up. */ [ helpcontext(0x100F0015) ,helpstring("Set all camera vectors : Pos, Look, Up.") ] HRESULT CameraSetSpaceParameters( [in] IVertex *pvPos ,[in] IVertex *pvLook ,[in] IVertex *pvU ); [ propget ,helpcontext(0x100F0016) ,helpstring("property Perspective.") ] HRESULT Perspective( [out, retval] IMSI_BOOL* pVal ); [ propput ,helpcontext(0x100F0016) ,helpstring("property Perspective.") ] HRESULT Perspective( [in] IMSI_BOOL newVal ); }; /** * An object that maintains custom Graphic objects. */ [ object ,uuid(6A481113-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10100000) ,helpstring("An object that maintains custom Graphic objects.") ] interface RegenMethod : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10100001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the RegenMethod object that this RegenMethod object is based on. */ [ propget ,helpcontext(0x10100002) ,helpstring("Returns the RegenMethod object that this RegenMethod object is based on.") ,restricted, hidden ] HRESULT BasedOn( [out, retval] RegenMethod** prop // The RegenMethod object that this RegenMethod object is based on. ); /** * Returns a description of the specified object, as a string. */ [ propget ,helpcontext(0x10100003) ,helpstring("Returns a description of the specified object, as a string.") ] HRESULT Description( [out, retval] BSTR* prop // A string describing the object. ); /** * Returns the RegenMethod object's detail level. */ [ propget ,helpcontext(0x10100004) ,helpstring("Returns the RegenMethod object's detail level.") ,restricted, hidden ] HRESULT Detail( [out, retval] SHORT* prop // The detail level of the RegenMethod object. ); /** * Sets the RegenMethod object's detail level. */ [ propput ,helpcontext(0x10100004) ,helpstring("Sets the RegenMethod object's detail level.") ,restricted, hidden ] HRESULT Detail( [in] SHORT detail // The detail level. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10100005) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10100006) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10100007) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns a Properties collection of the properties supported by the RegenMethod object. */ [ propget ,helpcontext(0x10100008) ,helpstring("Returns a Properties collection of the properties supported by the RegenMethod object.") ,restricted, hidden ] HRESULT Properties( [out, retval] Properties** props // The Properties collection. ); /** * Returns the name of a RegenMethod object's property page. */ [ propget ,helpcontext(0x10100009) ,helpstring("Returns the name of a RegenMethod object's property page.") ,restricted, hidden ] HRESULT PropertyPage( [in] long Index, // The index of the property page. [out, retval] BSTR* prop // The name of the property page. ); /** * Returns the number of property pages supported by the RegenMethod object. */ [ propget ,helpcontext(0x1010000A) ,helpstring("Returns the number of property pages supported by the RegenMethod object.") ,restricted, hidden ] HRESULT PropertyPageCount( [out, retval] long* prop // The number of property pages. ); /** * Returns the type of the RegenMethod object. */ [ propget ,helpcontext(0x1010000B) ,helpstring("Returns the type of the RegenMethod object.") ] HRESULT Type( [out, retval] ImsiRegenMethodType* prop // The type of the RegenMethod object. ); /** * Returns the name of a RegenMethod object's wizard. */ [ propget ,helpcontext(0x1010000C) ,helpstring("Returns the name of a RegenMethod object's wizard.") ,restricted, hidden ] HRESULT Wizard( [in] long Index, // The index of the wizard. [out, retval] BSTR* prop // The name of the wizard. ); /** * Returns the number of wizards supported by the RegenMethod object. */ [ propget ,helpcontext(0x1010000D) ,helpstring("Returns the number of wizards supported by the RegenMethod object.") ,restricted, hidden ] HRESULT WizardCount( [out, retval] long* prop // The number of wizards. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x1010000E) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x1010000F) ,helpstring("Deletes the object.") ,restricted, hidden ] HRESULT Delete( ); /** * Run a property page for the RegenMethod object. */ [ helpcontext(0x10100010) ,helpstring("Run a wizard for the RegenMethod object.") ,restricted, hidden ] HRESULT RunPropertyPage( [in] Graphics* Objects, // The collection of Graphic objects that the property page will modify. [in, optional] VARIANT* Index, // A name or index specifying which property page to run. [out, retval] IMSI_BOOL* GraphicsWereChanged // True if the Graphics collection was added to. ); /** * Run a wizard for the RegenMethod object. */ [ helpcontext(0x10100011) ,helpstring("Run a wizard for the RegenMethod object.") ,restricted, hidden ] HRESULT RunWizard( [in] Graphics* Objects, // The collection of Graphic objects that the wizard will add to. [in, optional] VARIANT* Name, // A name or index specifying which wizard to run. [out, retval] IMSI_BOOL* GraphicsWereAdded // True if the Graphics collection was added to. ); }; /** * A collection of RegenMethod objects. */ [ object ,uuid(6A481114-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10110000) ,helpstring("A collection of RegenMethod objects.") ] interface RegenMethods : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10110001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10110002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10110003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] RegenMethod** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10110004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10110005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds one or more RegenMethod objects to the collection. */ [ helpcontext(0x10110006) ,helpstring("Adds one or more RegenMethod objects to the collection.") ,restricted, hidden ] HRESULT Add( [in] BSTR FileName, // The file containing the RegenMethod objects. [in, out, optional] VARIANT* RegensAdded // An array of RegenMethod objects added. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10110007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10110008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] RegenMethod** prop // The object. ); }; /** * An object which controls the loading and saving of objects to and from disk. */ [ object ,uuid(6A48111B-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10120000) ,helpstring("An object which controls the loading and saving of objects to and from disk.") ] interface Filter : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10120001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns a description of the specified object, as a string. */ [ propget ,helpcontext(0x10120002) ,helpstring("Returns a description of the specified object, as a string.") ] HRESULT Description( [out, retval] BSTR* prop // A string describing the object. ); /** * Returns the last error encountered, as a string. */ [ propget ,helpcontext(0x10120003) ,helpstring("Returns the last error encountered, as a string.") ,restricted, hidden ] HRESULT Error( [out, retval] BSTR* prop // The error string. ); /** * Returns a file extension supported by the Filter object. */ [ propget ,helpcontext(0x10120004) ,helpstring("Returns a of file extension supported by the Filter object.") ] HRESULT Extension( [in, optional] VARIANT* Index, // The index of the extension. [out, retval] BSTR* prop // The file extension, as a string. ); /** * Returns the number of file extensions supported by the Filter object. */ [ propget ,helpcontext(0x10120005) ,helpstring("Returns the number of file extensions supported by the Filter object.") ] HRESULT ExtensionCount( [out, retval] long* prop // The number of extensions supported. ); /** * Returns a the Windows Common Dialog filter string. */ [ propget ,helpcontext(0x10120006) ,helpstring("Returns the Windows Common Dialog filter string.") ] HRESULT FilterString( [out, retval] BSTR* prop // The filter string. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10120007) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns True if the Filter object can load from a flat file. */ [ propget ,helpcontext(0x10120008) ,helpstring("Returns True if the Filter object can load from a flat file.") ] HRESULT OpenFlat( [out, retval] IMSI_BOOL* prop // True if the Filter object can load from a flat file. ); /** * Returns True if the Filter object can load from an OLE stream. */ [ propget ,helpcontext(0x10120009) ,helpstring("Returns True if the Filter object can load from an OLE stream.") ] HRESULT OpenStream( [out, retval] IMSI_BOOL* prop // True if the Filter object can load from an OLE stream. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x1012000A) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x1012000B) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the Filter object's priority. */ [ propget ,helpcontext(0x1012000C) ,helpstring("Returns the Filter object's priority.") ] HRESULT Priority( [out, retval] SHORT* prop // The priority. ); /** * Sets the Filter object's priority. */ [ propput ,helpcontext(0x1012000C) ,helpstring("Sets the Filter object's priority.") ] HRESULT Priority( [in] SHORT prop // The priority. ); /** * Returns True if the Filter object can save to a flat file. */ [ propget ,helpcontext(0x1012000D) ,helpstring("Returns True if the Filter object can save to a flat file.") ] HRESULT SaveFlat( [out, retval] IMSI_BOOL* prop // True if the Filter object can save to a flat file. ); /** * Returns True if the Filter object can save to an OLE stream. */ [ propget ,helpcontext(0x1012000E) ,helpstring("Returns True if the Filter object can save to an OLE stream.") ] HRESULT SaveStream( [out, retval] IMSI_BOOL* prop // True if the Filter object can save to an OLE stream. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x1012000F) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Check that the Filter object can read a file or stream. */ [ helpcontext(0x10120010) ,helpstring("Check that the Filter object can read a file or stream into a Graphics collection.") ,restricted, hidden ] HRESULT Check( [in, optional] VARIANT* FileName, // A flat file name. [in, optional] VARIANT* IStreamContents, // An OLE stream. [out, retval] IMSI_BOOL* prop // True if the file has the correct format. ); ); /** * Deletes the object. */ [ helpcontext(0x10120011) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Open the graphics from a file or stream into a Graphics collection. */ [ helpcontext(0x10120012) ,helpstring("Open the graphics from a file or stream into a Graphics collection.") ,restricted, hidden ] HRESULT Open( [in] Graphics* Dest, // Where to load the new Graphic objects. [in, optional] VARIANT* FileName, // A flat file name. [in, optional] VARIANT* IStreamContents, // An OLE stream. [out, retval] IMSI_BOOL* prop // True if the file was opened. ); /** * Runs the setup dialog for loading from a file or stream. */ [ helpcontext(0x10120013) ,helpstring("Runs the setup dialog for loading from a file or stream.") ,restricted, hidden ] HRESULT OpenSetupDialog( [out, retval] IMSI_BOOL* prop // True if the dialog was run. ); /** * Save the graphics in a Graphics collection to a file or stream. */ [ helpcontext(0x10120014) ,helpstring("Save the graphics in a Graphics collection to a file or stream.") ,restricted, hidden ] HRESULT Save( [in] Graphics* Source, // Where to obtain the Graphic objects to save. [in, optional] VARIANT* FileName, // A flat file name. [in, optional] VARIANT* IStreamContents, // An OLE stream. [out, retval] IMSI_BOOL* prop // True if the file was saved. ); /** * Runs the setup dialog for saving to a file or stream. */ [ helpcontext(0x10120015) ,helpstring("Runs the setup dialog for saving to a file or stream.") ,restricted, hidden ] HRESULT SaveSetupDialog( [out, retval] IMSI_BOOL* prop // True if the dialog was run. ); [ propget ,helpcontext(0x10120016) ,helpstring("return (set) the filter object capability (is this filter READ, WRITE or READWRITE") ] HRESULT Capability( [out, retval] ImsiFilterCapability *pVal ); [ propput ,helpcontext(0x10120016) ,helpstring("return (set) the filter object capability (is this filter READ, WRITE or READWRITE") ] HRESULT Capability( [in] ImsiFilterCapability newVal ); [ propget ,helpcontext(0x10120017) ,helpstring("property Hidden") ] HRESULT Hidden( [out, retval] IMSI_BOOL *pVal ); [ propput ,helpcontext(0x10120017) ,helpstring("property Hidden") ] HRESULT Hidden( [in] IMSI_BOOL newVal ); }; /** * The collection of objects that control loading from and saving to storage. */ [ object ,uuid(6A48111C-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10130000) ,helpstring("The collection of objects that control loading from and saving to storage.") ] interface Filters : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10130001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10130002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10130003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Filter** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10130004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10130005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Add all the Filter objects in the specified file to the collection. */ [ helpcontext(0x10130006) ,helpstring("Add all the Filter objects in the specified file to the collection.") ,restricted, hidden ] HRESULT Add( [in] BSTR FileName, // The full path name of the file containing Filter objects. [in, out, optional] VARIANT* FiltersAdded // An array of Filter objects. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10130007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10130008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] Filter** prop // The object. ); }; /** * The collection of layers in a TurboCAD drawing. */ [ object ,uuid(6A481116-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10140000) ,helpstring("The collection of layers in a TurboCAD drawing.") ] interface Layers : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10140001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10140002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10140003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Layer** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10140004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10140005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new layer to the collection. */ [ helpcontext(0x10140006) ,helpstring("Adds a new layer to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the Layer object. [in, optional] VARIANT* Visible, // True if Graphic objects on the Layer object are visible. [in, optional] VARIANT* Editable, // True if Graphic objects on the Layer object can be edited. [in, optional] VARIANT* Frozen, // True if Graphic objects on the Layer object cannot be edited or selected. [in, optional] VARIANT* Color, // The color of the Layer object. [in, optional] VARIANT* LineStyle, // The LineStyle object name or object for the Layer object. [in, optional] VARIANT* BrushStyle, // The BrushStyle object name or object for the Layer object. [in, optional] VARIANT* GraphicStyle, // The Style object name or object for the Layer object. [in, optional] VARIANT* ZOrder, // The z order for the Layer object. [out, retval] Layer** prop // The newly created Layer object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10140007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10140008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] Layer** prop // The object. ); }; /** * A TurboCAD line style object. */ [ object ,uuid(6A481117-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10150000) ,helpstring("A TurboCAD line style object.") ] interface LineStyle : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10150001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the LineStyle object's description string. */ [ propget ,helpcontext(0x10150002) ,helpstring("Returns the LineStyle object's description string.") ] HRESULT Description( [out, retval] BSTR* prop // The description. ); /** * Sets the the LineStyle object's description string. */ [ propput ,helpcontext(0x10150002) ,helpstring("Sets the LineStyle object's description string.") ] HRESULT Description( [in] BSTR prop // The description. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10150003) ,helpstring("Returns the Drawing object that owns the object.") ,restricted, hidden ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10150004) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10150005) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10150006) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the total pattern length. */ [ propget ,helpcontext(0x10150007) ,helpstring("Returns the total pattern length.") ,restricted, hidden ] HRESULT PatternLength( [out, retval] double* prop // The total pattern length. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x10150008) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10150009) ,helpstring("Deletes the object.") ,hidden, restricted ] HRESULT Delete( ); /** * Fills an array with dash lengths that make up the LineStyle object. */ [ helpcontext(0x1015000A) ,helpstring("Fills an array with dash lengths that make up the LineStyle object.") ,restricted, hidden ] HRESULT SetDashes( [in] VARIANT* Dashes // An array of doubles. ); /** * Fills an array with dash lengths that make up the LineStyle object. */ [ helpcontext(0x1015000B) ,helpstring("Fills an array with dash lengths that make up the LineStyle object.") ] HRESULT GetDashes( [out] VARIANT* Dashes // An array of doubles. ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x1015000C) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [out, retval] LineStyle** prop // The duplicated LineStyle object. ); }; /** * The collection of LineStyle objects within a Drawing object. */ [ object ,uuid(6A481118-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10160000) ,helpstring("The collection of LineStyle objects within a Drawing object.") ] interface LineStyles : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10160001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10160002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10160003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] LineStyle** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10160004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10160005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new LineStyle object to the collection. */ [ helpcontext(0x10160006) ,helpstring("Adds a new LineStyle object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the LineStyle object. [in] VARIANT* Dashes, // An array of dash lengths. [in, optional] VARIANT* Description, // A description string. [out, retval] LineStyle** prop // The newly created LineStyle object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10160007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10160008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] LineStyle** prop // The object. ); }; /** * A TurboCAD brush style object. */ [ object ,uuid(6A481119-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10170000) ,helpstring("A TurboCAD brush style object.") ] interface BrushStyle : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10170001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the BrushStyle object's bitmap file name. */ [ propget ,helpcontext(0x10170002) ,helpstring("Returns the BrushStyle object's bitmap file name.") ,restricted, hidden ] HRESULT Bitmap( [out, retval] BSTR* prop // The bitmap file name. ); /** * Sets the BrushStyle object's bitmap file name. */ [ propput ,helpcontext(0x10170002) ,helpstring("Sets the BrushStyle object's bitmap file name.") ,restricted, hidden ] HRESULT Bitmap( [in] BSTR prop // The bitmap file name. ); /** * Returns the BrushStyle object's color. */ [ propget ,helpcontext(0x10170003) ,helpstring("Returns the BrushStyle object's color.") ,restricted, hidden ] HRESULT Color( [out, retval] IMSI_COLOR* prop // The color. ); /** * Sets the BrushStyle object's color. */ [ propput ,helpcontext(0x10170003) ,helpstring("Sets the BrushStyle object's color.") ,restricted, hidden ] HRESULT Color( [in] IMSI_COLOR prop // The color. ); /** * Returns the BrushStyle object's description string. */ [ propget ,helpcontext(0x10170004) ,helpstring("Returns the BrushStyle object's description string.") ] HRESULT Description( [out, retval] BSTR* prop // The description. ); /** * Sets the the BrushStyle object's description string. */ [ propput ,helpcontext(0x10170004) ,helpstring("Sets the BrushStyle object's description string.") ] HRESULT Description( [in] BSTR prop // The description. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10170005) ,helpstring("Returns the Drawing object that owns the object.") ,restricted, hidden ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the BrushStyle object's Windows hatch style. */ [ propget ,helpcontext(0x10170006) ,helpstring("Returns the BrushStyle object's Windows hatch style.") ,restricted, hidden ] HRESULT HatchStyle( [out, retval] ImsiHatchStyle* prop // The hatch style. ); /** * Sets the BrushStyle object's Windows hatch style. */ [ propput ,helpcontext(0x10170006) ,helpstring("Sets the BrushStyle object's Windows hatch style.") ,restricted, hidden ] HRESULT HatchStyle( [in] ImsiHatchStyle prop // The hatch style. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10170007) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10170008) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10170009) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the BrushStyle object's BrushPatterns collection. */ [ propget ,restricted, hidden ,helpcontext(0x1017000A) ,helpstring("Returns the BrushStyle object's BrushPatterns collection.") ] HRESULT Patterns( [out, retval] BrushPatterns** Patterns // The BrushStyle object's BrushPatterns collection. ); /** * Returns the type of the BrushStyle object. */ [ propget ,helpcontext(0x1017000B) ,helpstring("Returns the type of the BrushStyle object.") ] HRESULT Type( [out, retval] ImsiBrushType* prop // The type. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x1017000C) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x1017000D) ,helpstring("Deletes the object.") ,hidden, restricted ] HRESULT Delete( ); }; /** * The collection of BrushStyle objects within a Drawing object. */ [ object ,uuid(6A48111A-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10180000) ,helpstring("The collection of BrushStyle objects within a Drawing object.") ] interface BrushStyles : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10180001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10180002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10180003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] BrushStyle** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10180004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10180005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new BrushStyle object to the collection. */ [ helpcontext(0x10180006) ,helpstring("Adds a new BrushStyle object to the collection.") ,restricted, hidden ] HRESULT Add( [in] BSTR Name, // The name of the BrushStyle object. [in, optional] VARIANT* HatchStyle, // A Windows hatch style. [in, optional] VARIANT* BitmapFileName, // A bitmap file. [in, optional] VARIANT* Patterns, // An array of BrushPattern objects. [in, optional] VARIANT* Description, // A description string. [out, retval] BrushStyle** prop // The newly created BrushStyle object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10180007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10180008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] BrushStyle** prop // The object. ); }; /** * A vector brush pattern, part of a BrushStyle object. */ [ object ,uuid(6A481145-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10190000) ,helpstring("A vector brush pattern, part of a BrushStyle object.") ,restricted, hidden ] interface IBrushPattern : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10190001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the BrushPattern object. */ [ propget ,helpcontext(0x10190002) ,helpstring("Returns the number of items in the BrushPattern object.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds an item to the BrushPattern object. */ [ helpcontext(0x10190003) ,helpstring("Adds an item to the BrushPattern object.") ] HRESULT AddItem( [in] VARIANT* Dashes, // The line style. [in] double XOrigin, // The x coordinate of the pattern's origin. [in] double YOrigin, // The y coordinate of the pattern's origin. [in] double Angle // The angle of the line in radians. ); /** * Returns an item in the BrushPattern object. */ [ helpcontext(0x10190004) ,helpstring("Returns an item in the BrushPattern object.") ] HRESULT GetItem( [in] long Index, // Index of item to return. [out] VARIANT* Dashes, // The line style. [out] double* XOrigin, // The x coordinate of the pattern's origin. [out] double* YOrigin, // The y coordinate of the pattern's origin. [out] double* Width, // The width (x axis) of the pattern's origin. [out] double* Height, // The height (y axis) of the pattern's origin. [out] double* Angle // The angle of the line in radians. ); /** * Sets an item in the BrushPattern object. */ [ helpcontext(0x10190005) ,helpstring("Sets an item in the BrushPattern object.") ] HRESULT SetItem( [in] long Index, // Index of item to set. [in] VARIANT* Dashes, // The line style. [in] double XOrigin, // The x coordinate of the pattern's origin. [in] double YOrigin, // The y coordinate of the pattern's origin. [in] double Width, // The width (x axis) of the pattern's origin. [in] double Height, // The height (y axis) of the pattern's origin. [in] double Angle // The angle of the line in radians. ); }; /** * A collection of vector brush patterns, part of a BrushStyle object. */ [ object ,restricted, hidden ,uuid(6A481146-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101A0000) ,helpstring("A collection of vector brush patterns, part of a BrushStyle object.") ] interface BrushPatterns : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x101A0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x101A0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns an item in the collection. * Index can be specified as a long integer or as a string (Drawing name). */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x101A0003) ,helpstring("Returns an item in the collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] IDrawing** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x101A0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x101A0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * An object that allows looking up colors by name. */ [ object ,uuid(6A48111D-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101B0000) ,helpstring("An object that allows looking up colors by name.") ] interface NamedColor : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x101B0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the blue value of the color. */ [ propget ,helpcontext(0x101B0002) ,helpstring("Returns the blue value of the color.") ] HRESULT Blue( [out, retval] double* prop // The blue value, in the range 0..1. ); /** * Sets the blue value of the color. */ [ propput ,helpcontext(0x101B0002) ,helpstring("Sets the blue value of the color.") ] HRESULT Blue( [in] double prop // The blue value, in the range 0..1. ); /** * Returns the brightness value of the color. */ [ propget ,helpcontext(0x101B0003) ,helpstring("Returns the brightness value of the color.") ] HRESULT Brightness( [out, retval] double* prop // The brightness value, in the range 0..1. ); /** * Sets the brightness value of the color. */ [ propput ,helpcontext(0x101B0003) ,helpstring("Sets the brightness value of the color.") ] HRESULT Brightness( [in] double prop // The brightness value, in the range 0..1. ); /** * Returns the RGB value of the color. */ [ propget, id(DISPID_VALUE) ,helpcontext(0x101B0004) ,helpstring("Returns the RGB value of the color.") ] HRESULT Color( [out, retval] IMSI_COLOR* prop // The RGB color. ); /** * Sets the RGB value of the color. */ [ propput, id(DISPID_VALUE) ,helpcontext(0x101B0004) ,helpstring("Sets the RGB value of the color.") ] HRESULT Color( [in] IMSI_COLOR prop // The RGB color. ); /** * Returns the green value of the color. */ [ propget ,helpcontext(0x101B0005) ,helpstring("Returns the green value of the color.") ] HRESULT Green( [out, retval] double* prop // The green value, in the range 0..1. ); /** * Sets the green value of the color. */ [ propput ,helpcontext(0x101B0005) ,helpstring("Sets the green value of the color.") ] HRESULT Green( [in] double prop // The green value, in the range 0..1. ); /** * Returns the hue of the color. */ [ propget ,helpcontext(0x101B0006) ,helpstring("Returns the hue of the color.") ] HRESULT Hue( [out, retval] double* prop // The hue, in the range 0..1. ); /** * Sets the hue of the color. */ [ propput ,helpcontext(0x101B0006) ,helpstring("Sets the hue of the color.") ] HRESULT Hue( [in] double prop // The hue, in the range 0..1. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x101B0007) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x101B0008) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Sets the name of the object. */ [ propput ,helpcontext(0x101B0008) ,helpstring("Sets the name of the object.") ] HRESULT Name( [in] BSTR prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x101B0009) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the red value of the color. */ [ propget ,helpcontext(0x101B000A) ,helpstring("Returns the red value of the color.") ] HRESULT Red( [out, retval] double* prop // The red value, in the range 0..1. ); /** * Sets the red value of the color. */ [ propput ,helpcontext(0x101B000A) ,helpstring("Sets the red value of the color.") ] HRESULT Red( [in] double prop // The red value, in the range 0..1. ); /** * Returns the saturation value of the color. */ [ propget ,helpcontext(0x101B000B) ,helpstring("Returns the saturation value of the color.") ] HRESULT Saturation( [out, retval] double* prop // The saturation value, in the range 0..1. ); /** * Sets the saturation value of the color. */ [ propput ,helpcontext(0x101B000B) ,helpstring("Sets the saturation value of the color.") ] HRESULT Saturation( [in] double prop // The saturation value, in the range 0..1. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x101B000C) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x101B000D) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x101B000E) ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [in] BSTR Name, // The name of the NamedColor object. [out, retval] NamedColor** prop // The duplicated NamedColor object. ); }; /** * The collection of NamedColor objects. */ [ object ,uuid(6A48111E-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101C0000) ,helpstring("The collection of NamedColor objects.") ] interface NamedColors : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x101C0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x101C0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x101C0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] NamedColor** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x101C0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x101C0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new NamedColor object to the collection. */ [ helpcontext(0x101C0006) ,helpstring("Adds a new NamedColor object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the NamedColor object. [in] IMSI_COLOR Color, // The RGB value of the NamedColor object. [out, retval] NamedColor** prop // The newly created NamedColor object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x101C0007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x101C0008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] NamedColor** prop // The object. ); }; /** * A collection of drawing scales. */ [ object ,restricted, hidden ,uuid(6A481130-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101D0000) ,helpstring("A collection of drawing scales.") ] interface ScaleSystem : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x101D0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x101D0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x101D0003) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x101D0004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] BSTR* prop // The item. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x101D0005) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x101D0006) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x101D0007) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x101D0008) ,helpstring("Deletes the object.") ] HRESULT Delete( ); }; /** * The collection of ScaleSystem objects. */ [ object ,restricted, hidden ,uuid(6A481131-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101E0000) ,helpstring("The collection of ScaleSystem objects.") ] interface ScaleSystems : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x101E0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x101E0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x101E0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] ScaleSystem** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x101E0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x101E0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * A TurboCAD grid. */ [ object ,restricted, hidden ,uuid(6A481132-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x101F0000) ,helpstring("A TurboCAD grid.") ] interface IGrid : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the Grid object's type. */ [ propget ,helpcontext(0x101F0001) ,helpstring("Returns the Grid object's type.") ] HRESULT Type( [out, retval] ImsiGridType* prop // The type. ); /** * Sets the Grid object's type. */ [ propput ,helpcontext(0x101F0001) ,helpstring("Sets the Grid object's type.") ] HRESULT Type( [in] ImsiGridType prop // The type. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x101F0002) ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [out, retval] IGrid** prop // The duplicated Grid object. ); }; /** * An object that holds the page setup settings for a Drawing object. */ [ object ,uuid(6A481133-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10200000) ,helpstring("An object that holds the page setup settings for a Drawing object.") ] interface PageSetup : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10200001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the size of the bottom margin, in millimeters. */ [ propget ,helpcontext(0x10200002) ,helpstring("Returns the size of the bottom margin, in millimeters.") ] HRESULT BottomMargin( [out, retval] double* prop // The bottom margin, in millimeters. ); /** * Sets the size of the bottom margin, in millimeters. */ [ propput ,helpcontext(0x10200002) ,helpstring("Sets the size of the bottom margin, in millimeters.") ] HRESULT BottomMargin( [in] double prop // The bottom margin, in millimeters. ); /** * Returns the number of columns necessary to tile the sheet height. */ [ propget ,helpcontext(0x10200003) ,helpstring("Returns the number of columns necessary to tile the sheet height.") ] HRESULT Columns( [out, retval] SHORT* prop // The number of columns. ); /** * Sets the number of columns necessary to tile the sheet height. */ [ propput ,helpcontext(0x10200003) ,helpstring("Sets the number of columns necessary to tile the sheet height.") ] HRESULT Columns( [in] SHORT prop // The number of columns. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10200004) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the size of the left margin, in millimeters. */ [ propget ,helpcontext(0x10200005) ,helpstring("Returns the size of the left margin, in millimeters.") ] HRESULT LeftMargin( [out, retval] double* prop // The left margin, in millimeters. ); /** * Sets the size of the left margin, in millimeters. */ [ propput ,helpcontext(0x10200005) ,helpstring("Sets the size of the left margin, in millimeters.") ] HRESULT LeftMargin( [in] double prop // The left margin, in millimeters. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10200006) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDrawing** prop // The parent object. ); /** * Returns the printer paper height, in millimeters. */ [ propget ,helpcontext(0x10200007) ,helpstring("Returns the printer paper height, in millimeters.") ] HRESULT PrinterHeight( [out, retval] double* prop // The height, in millimeters. ); /** * Sets the printer paper height, in millimeters. */ [ propput ,helpcontext(0x10200007) ,helpstring("Sets the printer paper height, in millimeters.") ] HRESULT PrinterHeight( [in] double prop // The height, in millimeters. ); /** * Returns the printer paper orientation. */ [ propget ,helpcontext(0x10200008) ,helpstring("Returns the printer paper orientation.") ] HRESULT PrinterOrientation( [out, retval] ImsiOrientation* prop // The orientation. ); /** * Sets the printer paper orientation. */ [ propput ,helpcontext(0x10200008) ,helpstring("Sets the printer paper orientation.") ] HRESULT PrinterOrientation( [in] ImsiOrientation prop // The orientation. ); /** * Sets the printer paper size from a string. */ [ propput ,helpcontext(0x10200009) ,helpstring("Sets the printer paper size from a string.") ,restricted, hidden ] HRESULT PrinterSize( [in] BSTR prop // The size string. ); /** * Returns the printer paper width, in millimeters. */ [ propget ,helpcontext(0x1020000A) ,helpstring("Returns the printer paper width, in millimeters.") ] HRESULT PrinterWidth( [out, retval] double* prop // The width, in millimeters. ); /** * Sets the printer paper width, in millimeters. */ [ propput ,helpcontext(0x1020000A) ,helpstring("Sets the printer paper width, in millimeters.") ] HRESULT PrinterWidth( [in] double prop // The width, in millimeters. ); /** * Returns the size of the right margin, in millimeters. */ [ propget ,helpcontext(0x1020000B) ,helpstring("Returns the size of the right margin, in millimeters.") ] HRESULT RightMargin( [out, retval] double* prop // The right margin, in millimeters. ); /** * Sets the size of the right margin, in millimeters. */ [ propput ,helpcontext(0x1020000B) ,helpstring("Sets the size of the right margin, in millimeters.") ] HRESULT RightMargin( [in] double prop // The right margin, in millimeters. ); /** * Returns the number of rows necessary to tile the sheet width. */ [ propget ,helpcontext(0x1020000C) ,helpstring("Returns the number of rows necessary to tile the sheet width.") ] HRESULT Rows( [out, retval] SHORT* prop // The number of rows. ); /** * Sets the number of rows necessary to tile the sheet width. */ [ propput ,helpcontext(0x1020000C) ,helpstring("Sets the number of rows necessary to tile the sheet width.") ] HRESULT Rows( [in] SHORT prop // The number of rows. ); /** * Returns the drawing scale. */ [ propget ,helpcontext(0x1020000D) ,helpstring("Returns the dwawing scale.") ] HRESULT Scale( [out, retval] double* prop // The drawing scale. ); /** * Sets the drawing scale, as a number or string. */ [ propput ,helpcontext(0x1020000D) ,helpstring("Sets the drawing scale, as a number or string.") ] HRESULT Scale( [in] VARIANT* prop // The drawing scale, as a number or string. ); /** * Returns the sheet height, in millimeters. */ [ propget ,helpcontext(0x1020000E) ,helpstring("Returns the sheet height, in millimeters.") ] HRESULT SheetHeight( [out, retval] double* prop // The height, in millimeters. ); /** * Sets the sheet height, in millimeters. */ [ propput ,helpcontext(0x1020000E) ,helpstring("Sets the sheet height, in millimeters.") ] HRESULT SheetHeight( [in] double prop // The height, in millimeters. ); /** * Returns the sheet orientation. */ [ propget ,helpcontext(0x1020000F) ,helpstring("Returns the sheet orientation.") ] HRESULT SheetOrientation( [out, retval] ImsiOrientation* prop // The orientation. ); /** * Sets the sheet orientation. */ [ propput ,helpcontext(0x1020000F) ,helpstring("Sets the sheet orientation.") ] HRESULT SheetOrientation( [in] ImsiOrientation prop // The orientation. ); /** * Returns the sheet width, in millimeters. */ [ propget ,helpcontext(0x10200010) ,helpstring("Returns the sheet width, in millimeters.") ] HRESULT SheetWidth( [out, retval] double* prop // The width, in millimeters. ); /** * Sets the sheet width, in millimeters. */ [ propput ,helpcontext(0x10200010) ,helpstring("Sets the sheet width, in millimeters.") ] HRESULT SheetWidth( [in] double prop // The width, in millimeters. ); /** * Returns the size of the top margin, in millimeters. */ [ propget ,helpcontext(0x10200011) ,helpstring("Returns the size of the top margin, in millimeters.") ] HRESULT TopMargin( [out, retval] double* prop // The top margin, in millimeters. ); /** * Sets the size of the top margin, in millimeters. */ [ propput ,helpcontext(0x10200011) ,helpstring("Sets the size of the top margin, in millimeters.") ] HRESULT TopMargin( [in] double prop // The top margin, in millimeters. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adjusts the scale to fit the specified area on one page. */ [ helpcontext(0x10200012) ,helpstring("Adjusts the scale to fit the specified area on one page.") ,restricted, hidden ] HRESULT FitOnOnePage( [in] double Width, // Width of object in world coordinates. [in] double Height // Height of object in world coordinates. ); /** * Gets the available printer paper sizes. */ [ helpcontext(0x10200013) ,helpstring("Gets the available printer paper sizes.") ,restricted, hidden ] HRESULT GetPrinterSizes( [out] VARIANT* Sizes // An array of strings. ); }; /** * An open undo record in a Drawing object. */ [ object ,uuid(6A481136-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10210000) ,helpstring("An open undo record in a Drawing object.") ] interface UndoRecord : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10210001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10210002) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the string that will appear in the Undo menu item. */ [ propget ,helpcontext(0x10210003) ,helpstring("Returns the string that will appear in the Undo menu item.") ] HRESULT MenuText( [out, retval] BSTR* prop // The menu string. ); /** * Sets the string that will appear in the Undo menu item. */ [ propput ,helpcontext(0x10210003) ,helpstring("Returns the string that will appear in the Undo menu item.") ] HRESULT MenuText( [in] BSTR prop // The menu string. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10210004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a Graphic object reference to the URecObj. */ /** * TCADAPI UndoRecordAddGraphic function. */ [ helpcontext(0x10210005) ,helpstring("Adds a Graphic object reference to the URecObj.") ] HRESULT AddGraphic( [in] IGraphic* Graphic // The Graphic object to delete when Undo is called. ); /** * Adds a purged reference to the Graphic object to the URecObj. */ [ helpcontext(0x10210006) ,helpstring("Adds a purged reference to the Graphic object to the URecObj.") ] HRESULT AddGraphicForModify( [in] IGraphic* Graphic // The Graphic object to restore when Undo is called. ); /** * Closes the URecObj and adds it to the Drawing object's Undo stack. */ /** * TCADAPI UndoRecordEnd function. */ [ helpcontext(0x10210007) ,helpstring("Closes the URecObj and adds it to the Drawing object's Undo stack.") ] HRESULT Close( ); /** * Deletes the object. */ [ helpcontext(0x10210008) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Deletes the Graphic object, adding a purged reference to the URecObj. */ [ helpcontext(0x10210009) ,helpstring("Deletes the Graphic object, adding a purged reference to the URecObj.") ] HRESULT DeleteGraphic( [in] IGraphic* Graphic // The Graphic object to add when Undo is called. ); /** * Deletes the Graphics collection, adding a purged references to the URecObj. */ [ helpcontext(0x10210009) ,helpstring("Deletes the Graphics collection, adding a purged references to the URecObj.") ] HRESULT DeleteGraphics( [in] Graphics* pGrs // The Graphics collection to add when Undo is called. ,[in, optional] VARIANT* pvarFlags ); /** * Add custom undo action to the URecObj. */ [ helpcontext(0x1021000A) ,helpstring("Add custom undo action to the URecObj.") ] HRESULT CustomAction( [in] VARIANT* pvarUndoSink// object supports IUndoNotifySink interface ); }; /** * A transformation matrix. */ [ object ,uuid(6A481137-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10220000) ,helpstring("A transformation matrix.") ] interface IMatrix : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the entry 'e' whith indexes 'i'(row), 'j'(col) */ [ helpcontext(0x10220001) ,helpstring("Returns the entry whith indexes i(row),j(col).") ] HRESULT GetEntry( [in] int i, // The x scale factor. [in] int j, // The y scale factor. [out, retval] double* e // The entry value. ); /** * Set the entry 'e' whith indexes 'i'(row), 'j'(col) */ [ helpcontext(0x10220002) ,helpstring("set the entry whith indexes i(row),j(col).") ] HRESULT SetEntry( [in] int i, // The x scale factor. [in] int j, // The y scale factor. [in] double e // New entry value. ); /** * Returns the all entries */ [ helpcontext(0x10220003) ,helpstring("Returns all entries.") ] HRESULT GetEntries( [out] double* e00, // The entry value. [out] double* e01, // The entry value. [out] double* e02, // The entry value. [out] double* e03, // The entry value. [out] double* e10, // The entry value. [out] double* e11, // The entry value. [out] double* e12, // The entry value. [out] double* e13, // The entry value. [out] double* e20, // The entry value. [out] double* e21, // The entry value. [out] double* e22, // The entry value. [out] double* e23, // The entry value. [out] double* e30, // The entry value. [out] double* e31, // The entry value. [out] double* e32, // The entry value. [out] double* e33 // The entry value. ); /** * Set the all entries */ [ helpcontext(0x10220004) ,helpstring("Set the all entries.") ] HRESULT SetEntries( [in] double e00, // The entry value. [in] double e01, // The entry value. [in] double e02, // The entry value. [in] double e03, // The entry value. [in] double e10, // The entry value. [in] double e11, // The entry value. [in] double e12, // The entry value. [in] double e13, // The entry value. [in] double e20, // The entry value. [in] double e21, // The entry value. [in] double e22, // The entry value. [in] double e23, // The entry value. [in] double e30, // The entry value. [in] double e31, // The entry value. [in] double e32, // The entry value. [in] double e33 // The entry value. ); ////////////////////////////////////////////// /** * Returns the internal handle associated with the Drawing object. * Private. */ [ propget ,restricted ,helpcontext(0x10220005) ,helpstring("Private. Returns the internal handle associated with the Drawing object.") ] HRESULT _Handle( [out, retval] long* prop // The internal handle. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x10220006) ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [out, retval] IMatrix** prop // The duplicated Matrix object. ); /** * Fills an array with the values of a 4x4 matrix. */ [ helpcontext(0x10220007) ,helpstring("Fills an array with the values of a 4x4 matrix.") ] HRESULT GetArray( [in, out] VARIANT* ArrayEntries // An array of 16 doubles. ); /** * Sets the Matrix object to an identity matrix. */ [ helpcontext(0x10220008) ,helpstring("Sets the Matrix object to an identity matrix.") ] HRESULT Identity( ); /** * Inverts the Matrix object. */ [ helpcontext(0x10220009) ,helpstring("Inverts the Matrix object.") ] HRESULT Invert( ); /** * Sets the Matrix object to, or transforms the Matrix object by, a rotation. */ [ helpcontext(0x1022000A) ,helpstring("Sets the Matrix object to, or transforms the Matrix object by, a rotation.") ] HRESULT Rotate( [in] double XAxis, // The x coordinate of the rotation axis. [in] double YAxis, // The y coordinate of the rotation axis. [in] double ZAxis, // The z coordinate of the rotation axis. [in] double Angle, // The rotation angle in radians. [in, optional] VARIANT* XCenter, // The x coordinate of the center of rotation. [in, optional] VARIANT* YCenter, // The y coordinate of the center of rotation. [in, optional] VARIANT* ZCenter, // The z coordinate of the center of rotation. [in, optional] VARIANT* Concat // True to concatenate this to the existing transform. ); /** * Sets the Matrix object to, or transforms the Matrix object by, scale factors. */ [ helpcontext(0x1022000B) ,helpstring("Sets the Matrix object to, or transforms the Matrix object by, scale factors.") ] HRESULT Scale( [in] double XScale, // The x scale factor. [in] double YScale, // The y scale factor. [in] double ZScale, // The z scale factor. [in, optional] VARIANT* XCenter, // The x coordinate of the center of scaling. [in, optional] VARIANT* YCenter, // The y coordinate of the center of scaling. [in, optional] VARIANT* ZCenter, // The z coordinate of the center of scaling. [in, optional] VARIANT* Concat // True to concatenate this to the existing transform. ); /** * Sets the Matrix object from an array with the values of a 4x4 matrix. */ [ helpcontext(0x1022000C) ,helpstring("Sets the Matrix object from an array with the values of a 4x4 matrix.") ] HRESULT SetArray( [in] VARIANT* ArrayEntries // An array of 16 doubles. ); /** * Sets the Matrix object to, or transforms the Matrix object by, a translation. */ [ helpcontext(0x1022000D) ,helpstring("Sets the Matrix object to, or transforms the Matrix object by, a translation.") ] HRESULT Translate( [in] double X, // The x coordinate of the translation. [in] double Y, // The y coordinate of the translation. [in] double Z, // The z coordinate of the translation. [in, optional] VARIANT* Concat // True to concatenate this to the existing transform. ); /** * Transposes the Matrix object. */ [ helpcontext(0x1022000E) ,helpstring("Transposes the Matrix object.") ] HRESULT Transpose( ); /** * Translates, scales, and rotates around z axis. */ [ helpcontext(0x1022000F) ,helpstring("Translates, scales, and rotates around z axis.") ] HRESULT TranslateScaleAndRotateZ( [in] double X, // X coordinate of the translation. [in] double Y, // Y coordinate of the translation. [in] double Z, // Z coordinate of the translation. [in] double XScale, // X scale factor. [in] double YScale, // Y scale factor. [in] double ZScale, // Z scale factor. [in] double Angle, // Angle of rotation around z axis in radians. [in, optional] VARIANT* XCenter, // The x coordinate of the center of rotation. [in, optional] VARIANT* YCenter, // The y coordinate of the center of rotation. [in, optional] VARIANT* ZCenter, // The z coordinate of the center of rotation. [in, optional] VARIANT* Concat // True to concatenate this to the existing transform. ); [ helpcontext(0x10220010) ,helpstring("check if matrix equal to another") ] HRESULT IsEqual( [in] IDispatch* pIDisp ,[out, retval] IMSI_BOOL* pbRet ); }; /** * An object that describes a cube in three dimensional space. */ [ object ,uuid(6A48111F-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10230000) ,helpstring("An object that describes a cube in three dimensional space.") ] interface BoundingBox : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns True if the BoundingBox object empty. */ [ propget ,helpcontext(0x10230001) ,helpstring("Returns True if the BoundingBox object is empty.") ] HRESULT Empty( [out, retval] IMSI_BOOL* prop // True if the BoundingBox object is empty. ); /** * Returns the maximum Vertex object of the BoundingBox object. */ [ propget ,helpcontext(0x10230002) ,helpstring("Returns the maximum Vertex object of the BoundingBox object.") ] HRESULT Max( [out, retval] IVertex** max // The maximum Vertex object. ); /** * Returns the minimum Vertex object of the BoundingBox object. */ [ propget ,helpcontext(0x10230003) ,helpstring("Returns the minimum Vertex object of the BoundingBox object.") ] HRESULT Min( [out, retval] IVertex** min // The minimum Vertex object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the direction to the nearest face of the box. */ [ helpcontext(0x10230004) ,helpstring("Returns the direction from a Vertex object to the nearest face of the BoundingBox object.") ] HRESULT DirToNearestFace( [in] IVertex* Vertex, // The Vertex object to test. [in] IMSI_BOOL IgnoreZAxis, // True to ignore the z axis. [in, optional] VARIANT* OtherVertex, // Another Vertex object in case the answer is ambiguous. [out, retval] ImsiDirection* prop // The direction. ); /** * Inflates (or deflates) the BoundingBox object by the specified distance. */ [ helpcontext(0x10230005) ,helpstring("Inflates (or deflates) the BoundingBox object by the specified distance.") ] HRESULT Inflate( [in] double InflateBy // The amount to inflate by (positive) or deflate by (negative). ); /** * Sets the BoundingBox object to a point or cube around a specified vertex. */ [ helpcontext(0x10230006) ,helpstring("Sets the BoundingBox object to a point or cube around a specified vertex.") ] HRESULT Set( [in, optional] VARIANT* Center, // A Vertex object specifying the center of the BoundingBox object. [in, optional] VARIANT* Size // The size of the BoundingBox object. ); /** * Makes the dimensions of BoundingBox equal to the union of the source BoundingBox and pvarBBox object. */ [ helpcontext(0x10230007) ,helpstring("Sets the BoundingBox object to a point or cube around a specified vertex.") ] HRESULT Union( [in] VARIANT* pvarBBox // A BoundingBox object to be union with source BoundingBox. ); /** * Makes the dimensions of BoundingBox equal to the intersection of the source BoundingBox and pvarBBox object. */ [ helpcontext(0x10230008) ,helpstring("Makes the dimensions of BoundingBox equal to the intersection of the source BoundingBox and pvarBBox object.") ] HRESULT Intersect( [in] VARIANT* pvarBBox // A BoundingBox object to be intersection with source BoundingBox. ); /** * Makes the dimensions of BoundingBox equal to the subtrcation of the source BoundingBox and pvarBBox object. */ [ helpcontext(0x10230009) ,helpstring("Makes the dimensions of BoundingBox equal to the subtrcation of the source BoundingBox and pvarBBox object.") ] HRESULT Subtract( [in] VARIANT* pvarBBox // A BoundingBox object to be subtrcation with source BoundingBox. ); }; /** * A named container for Graphic objects that can be inserted into a Drawing object. */ [ object ,uuid(6A481120-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10240000) ,helpstring("A named container for Graphic objects that can be inserted into a Drawing object.") ] interface Block : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the anchor point for insertions. */ [ propget ,helpcontext(0x10240001) ,helpstring("Returns the anchor point for insertions.") ] HRESULT Anchor( [out, retval] IVertex** prop // The anchor, as a Vertex object. ); /** * Sets the anchor point for insertions. */ [ propput ,helpcontext(0x10240001) ,helpstring("Sets the anchor point for insertions.") ] HRESULT Anchor( [in] IVertex* prop // The anchor, as a Vertex object. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10240002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10240003) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the Graphics collection that the Block object contains. */ [ propget, id(DISPID_VALUE) ,helpcontext(0x10240004) ,helpstring("Returns the Graphics collection that the Block object contains.") ] HRESULT Graphics( [out, retval] Graphics** prop // The Graphics collection. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10240005) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10240006) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10240007) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x10240008) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10240009) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x1024000A) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [in] BSTR Name, // The name of the new Block object. [out, retval] Block** prop // The duplicated Block object. ); /** * Returns the anchor point for insertions. */ [ propget ,helpcontext(0x1024000B) ,helpstring("Returns TRUE if Block is eXternal Reference.") ] HRESULT XRef( [out, retval] IMSI_BOOL* prop // The anchor, as a Vertex object. ); /** Sets the path to the referencing file if Block is eXternal Reference. **/ [ propput ,helpcontext(0x1024000C) ,helpstring("Sets the path to the referencing file if Block is eXternal Reference.") //,restricted, hidden ] HRESULT XRefPath( [in] BSTR prop // The path to the referencing file . ); /** Returns the path to the referencing file if Block is eXternal Reference. **/ [ propget ,helpcontext(0x1024000C) ,helpstring("Returns the path to the referencing file if Block is eXternal Reference.") ] HRESULT XRefPath( [out, retval] BSTR* prop // The path to the referencing file . ); /** * Creates and adds an attribute definition Graphic object to the collection. */ [ helpcontext(0x10040071) ,helpstring("Creates and adds an attribute definition Graphic object to the collection.") ] HRESULT AddAttributeDefinition( [in] BSTR Tag, // The text string for the attribute definition tag. [in] double X0, // X coordinate of attdef's starting point. [in] double Y0, // Y coordinate of attdef's starting point. [in] double Z0, // Z coordinate of attdef's starting point. [in] double Height, // Height of attdef object. [in, optional] VARIANT* Angle, // Rotation angle of attdef in radians. [in, optional] VARIANT* Width, // Width of attdef object. [in, optional] VARIANT* Offset, // An ImsiTextOffset. [in, optional] VARIANT* Justification, // An ImsiTextJustification. [in, optional] VARIANT* AttFlags, // ImsiAttFlag values. [in, optional] VARIANT* Default, // Default value of attribute. [in, optional] VARIANT* Prompt, // Prompt for attribute. [out, retval] IGraphic** prop // The newly created Graphic object. ); }; /** * The Drawing object's collection of Block objects. */ [ object ,uuid(6A481121-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10250000) ,helpstring("The Drawing object's collection of Block objects.") ] interface Blocks : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10250001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10250002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10250003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Block** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10250004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10250005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new Block object to the collection. */ [ helpcontext(0x10250006) ,helpstring("Adds a new Block object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the new Block object. [in] IGraphic* Graphic, // The Graphic object that the Block object will contain. [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [in, optional] VARIANT* CopyGraphic, // True to make the block using copies of the Graphic object. [in, optional] VARIANT* InsertBlock, // True to insert the new block in the Drawing object. [in, out, optional] VARIANT* Insert, // The Insert Graphic object if InsertBlock was true [out, retval] Block** prop // The newly created Block object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10250007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10250008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] Block** prop // The object. ); /** * Adds a new Block object to the collection. */ [ helpcontext(0x10250009) ,helpstring("Adds a new eXternal Reference Block object to the collection.") ] HRESULT AddXRef( [in] BSTR Name, // The name of the new Block object. [in] BSTR path, // path to the eXternal Reference file [in, optional] VARIANT* XRef, // X coordinate of the block reference point. [in, optional] VARIANT* YRef, // Y coordinate of the block reference point. [in, optional] VARIANT* ZRef, // Z coordinate of the block reference point. [out, retval] Block** prop // The newly created Block object. ); }; /** * A generic TurboCAD table. */ [ object ,restricted, hidden ,uuid(6A481138-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10260000) ,helpstring("A generic TurboCAD table.") ] interface Table : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10260001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of entries in the Table. */ [ propget ,helpcontext(0x10260002) ,helpstring("Returns the number of entries in the Table.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns the name of the entry at a specified index. */ [ propget ,helpcontext(0x10260003) ,helpstring("Returns the name of the entry at a specified index.") ] HRESULT EntryName( [in] long Index, // The index. [out, retval] BSTR* prop // The name of the entry. ); /** * Returns the value of the entry at a specified index. */ [ propget ,helpcontext(0x10260004) ,helpstring("Returns the value of the entry at a specified index.") ] HRESULT EntryValue( [in] long Index, // The index. [out, retval] BSTR* prop // The value of the entry, as a string. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10260005) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10260006) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10260007) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Clears the Table object's entries. */ [ helpcontext(0x10260008) ,helpstring("Clears the Table object's entries.") ] HRESULT Clear( ); /** * Deletes the object. */ [ helpcontext(0x10260009) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Reads the Table object in from the profile section. */ [ helpcontext(0x1026000A) ,helpstring("Reads the Table object in from the profile section.") ] HRESULT Open( [in, optional] VARIANT* ProfileSection, // The section name. [in, optional] VARIANT* ProfileName // The file name. ); /** * Writes the Table object out to the profile section. */ [ helpcontext(0x1026000B) ,helpstring("Writes the Table object out to the profile section.") ] HRESULT Save( [in, optional] VARIANT* ProfileSection, // The section name. [in, optional] VARIANT* ProfileName // The file name. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x1026000C) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x1026000D) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] IDispatch** prop // The object. ); }; /** * A collection of TurboCAD tables. */ [ object ,restricted, hidden ,uuid(6A481139-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10270000) ,helpstring("A collection of TurboCAD tables.") ] interface Tables : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10270001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10270002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10270003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Table** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10270004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10270005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * A TurboCAD style. */ [ object ,uuid(6A48113A-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10280000) ,helpstring("A TurboCAD style.") ] interface Style : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10280001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the Style object is active. */ [ propget ,helpcontext(0x10280002) ,helpstring("True if the Style object is active.") ] HRESULT Active( [out, retval] IMSI_BOOL* prop // True if the Style object is active. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10280003) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10280004) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10280005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the Style object's Properties collection. */ [ propget ,helpcontext(0x10280006) ,helpstring("Returns the Style object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); /** * Returns the Style object's defaults graphic. * Private. */ [ propget ,restricted, hidden ,helpcontext(0x10280007) ,helpstring("Private. Returns the Style object's defaults graphic.") ] HRESULT _Defaults( [out, retval] long* prop // The defaults graphic. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x10280008) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a Graphic object's properties to the style. */ [ helpcontext(0x10280009) ,restricted, hidden ,helpstring("Adds a Graphic object's properties to the style.") ] HRESULT AddGraphicProperties( [in] IGraphic* GraphicToAdd // The Graphic object. ); /** * Deletes the object. */ [ helpcontext(0x1028000A) ,restricted, hidden ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x1028000B) ,restricted, hidden ,helpstring("Duplicates the object and returns a reference to the new copy.") ] HRESULT Duplicate( [in] BSTR Name, // The name for the new Style object. [out, retval] Style** prop // The duplicated Style object. ); /** * Makes this object the active Styleobject. * */ [ helpcontext(0x1028000C) ,helpstring("Makes this object the active Style object.") ] HRESULT Activate( ); }; /** * The collection of TurboCAD styles. */ [ object ,uuid(6A48113B-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10290000) ,helpstring("The collection of TurboCAD styles.") ] interface Styles : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10290001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10290002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10290003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Style** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10290004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10290005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new Style object to the collection. */ [ helpcontext(0x10290006) ,helpstring("Adds a new Style object to the collection.") ,restricted, hidden ] HRESULT Add( [in] BSTR Name, // A name for the new Style object. [in, optional] VARIANT* BasedOn, // Style object to base on. [in, optional] VARIANT* Properties, // Properties for the new Style object. [out, retval] Style** prop // The new Style object. ); }; /** * A named TurboCAD view. */ [ object ,uuid(6A48113C-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102A0000) ,helpstring("A named TurboCAD view.") ] interface NamedView : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102A0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x102A0002) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x102A0003) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x102A0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x102A0005) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x102A0006) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the NamedView object's BoundingBox object. */ [ propget ,helpcontext(0x102A0007) ,helpstring("Returns the NamedView object's BoundingBox object.") ] HRESULT BoundingBox( [out, retval] BoundingBox** prop // The BoundingBox object. ); /** * Sets the NamedView object's BoundingBox object. */ [ propput ,helpcontext(0x102A0007) ,helpstring("Sets the NamedView object's BoundingBox object.") ] HRESULT BoundingBox( [in] BoundingBox* prop // The BoundingBox object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x102A0008) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Duplicates the object and returns a reference to the new copy. */ [ helpcontext(0x102A0009) ,helpstring("Duplicates the object and returns a reference to the new copy.") ,restricted, hidden ] HRESULT Duplicate( [in] BSTR Name, // The name for the new NamedView object [out, retval] NamedView** prop // The duplicated NamedView object. ); }; /** * A collection of NamedView objects. */ [ object ,uuid(6A48113D-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102B0000) ,helpstring("A collection of NamedView objects.") ] interface NamedViews : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102B0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x102B0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x102B0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] NamedView** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x102B0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x102B0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new NamedView object to the collection. */ [ helpcontext(0x102B0006) ,helpstring("Adds a new NamedView object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the new NamedView object. [in] double XMin, // The x coordinate of one corner (in viewport coordinates). [in] double YMin, // The y coordinate of one corner (in viewport coordinates). [in] double XMax, // The x coordinate of the other corner (in viewport coordinates). [in] double YMax, // The y coordinate of the other corner (in viewport coordinates). [out, retval] NamedView** prop // The newly created NamedView object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x102B0007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x102B0008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] NamedView** prop // The object. ); }; /** * A single entity in a pick operation. */ [ object ,uuid(6A481122-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102C0000) ,helpstring("A single entity in a pick operation.") ] interface PickEntry : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102C0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the closest child Graphic object in the Graphic object. */ [ propget ,helpcontext(0x102C0002) ,helpstring("Returns the closest child Graphic object in the Graphic object.") ] HRESULT ClosestChildGraphic( [out, retval] IGraphic** prop // The closest child Graphic object. ); /** * Returns the closest face on the entity. */ [ propget ,helpcontext(0x102C0003) ,helpstring("Returns the closest face on the entity.") ,restricted, hidden ] HRESULT ClosestFace( [out, retval] IGraphic** prop // The face on the entity, as a Graphic object. ); /** * Returns the closest point on the entity. */ [ propget ,helpcontext(0x102C0004) ,helpstring("Returns the closest point on the entity.") ] HRESULT ClosestVertex( [out, retval] IVertex** prop // The closest point on the entity, as a Vertex object. ); /** * Returns the closest Vertex object on the closest segment of the entity. */ [ propget ,helpcontext(0x102C0005) ,helpstring("Returns the closest Vertex object on the closest segment of the entity.") ] HRESULT ClosestSegmentVertex( [out, retval] IVertex** prop // The closest Vertex object on the closest segment of the entity. ); /** * Returns the depth of the closest point on the entity. */ [ propget ,helpcontext(0x102C0006) ,helpstring("Returns the depth of the closest point on the entity.") ,restricted, hidden ] HRESULT Depth( [out, retval] double* prop // The depth of the closest point on the entity. ); /** * Returns the distance from the pick ray to the closest point on the entity. */ [ propget ,helpcontext(0x102C0007) ,helpstring("Returns the distance from the pick ray to the closest point on the entity.") ] HRESULT Distance( [out, retval] double* prop // The distance from the pick ray to the closest point on the entity. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x102C0008) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the PickEntry object's Graphic object. */ [ propget ,helpcontext(0x102C0009) ,helpstring("Returns the PickEntry object's Graphic object.") ] HRESULT Graphic( [out, retval] IGraphic** prop // The Graphic object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x102C000A) ,helpstring("Returns the index of the item in the collection.") ,restricted, hidden ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the other Vertex object on the closest segment of the entity. */ [ propget ,helpcontext(0x102C000B) ,helpstring("Returns the other Vertex object on the closest segment of the entity.") ,restricted, hidden ] HRESULT OtherSegmentVertex( [out, retval] IVertex** prop // The other Vertex object on the closest segment of the entity. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x102C000C) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the ray point closest to the closest point on the entity. */ [ propget ,helpcontext(0x102C000D) ,helpstring("Returns the ray point closest to the closest point on the entity.") ,restricted, hidden ] HRESULT RayPoint( [out, retval] IVertex** prop // The ray point, as a Vertex object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * The result of a pick operation. */ [ object ,uuid(6A481123-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102D0000) ,helpstring("The result of a pick operation.") ] interface PickResult : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102D0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x102D0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x102D0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] PickEntry** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x102D0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the active snap modes at the time the pick was made. * <p> * A long integer that can be tested against the ImsiSnapMode enumerated values. */ [ propget ,helpcontext(0x102D0005) ,helpstring("Returns the active snap modes at the time the pick was made.") ] HRESULT SnapModes( [out, retval] long* prop // The active snap modes. ); /** * Returns the active snap modes at the time the pick was made. * <p> * Returns a Vertices collection which contains the vertex or vertices which defined the pick. */ [ propget ,helpcontext(0x102D0006) ,helpstring("Returns a Vertices collection which contains the vertex or vertices which defined the pick.") ] HRESULT Vertices( [out, retval] Vertices** prop // The Vertices collection ); /** * Creates an enumeration object. */ [ propget ,restricted, hidden ,id(DISPID_NEWENUM) ,helpcontext(0x102D0007) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /** * Returns the actual vertex of the mouse click * */ [ propget ,helpcontext(0x102D0008) ,helpstring("Returns the actual vertex of the mouse click.") ] HRESULT PickVertex( [out, retval] IVertex** prop // The mouse click ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * A TurboCAD window object. */ [ object ,uuid(6A481124-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102E0000) ,helpstring("A TurboCAD window object.") ] interface Window : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * True if the Window object is active. */ [ propget ,helpcontext(0x102E0001) ,helpstring("True if the Window object is active.") ] HRESULT Active( [out, retval] IMSI_BOOL* prop // True if the Window object is active. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102E0002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the text that appears in the title bar of the Window object. */ [ propget ,helpcontext(0x102E0003) ,helpstring("Returns the text that appears in the title bar of the Window object.") ] HRESULT Caption( [out, retval] BSTR* prop // The title bar caption, as a string. ); /** * Sets the text that appears in the title bar of the Window object. */ [ propput ,helpcontext(0x102E0003) ,helpstring("Sets the text that appears in the title bar of the Window object.") ] HRESULT Caption( [in] BSTR prop // The title bar caption, as a string. ); /** * True if rulers are visible. */ [ propget ,helpcontext(0x102E0004) ,helpstring("True if rulers are visible.") ,restricted, hidden ] HRESULT DisplayRulers( [out, retval] IMSI_BOOL* prop // True if rulers are visible. ); /** * True if rulers are visible. */ [ propput ,helpcontext(0x102E0004) ,helpstring("True if rulers are visible.") ,restricted, hidden ] HRESULT DisplayRulers( [in] IMSI_BOOL prop // True if rulers are visible. ); /** * True if scroll bars are visible. */ [ propget ,helpcontext(0x102E0005) ,helpstring("True if scroll bars are visible.") ,restricted, hidden ] HRESULT DisplayScrollBars( [out, retval] IMSI_BOOL* prop // True if scroll bars are visible. ); /** * True if scroll bars are visible. */ [ propput ,helpcontext(0x102E0005) ,helpstring("True if scroll bars are visible.") ,restricted, hidden ] HRESULT DisplayScrollBars( [in] IMSI_BOOL prop // True if scroll bars are visible. ); /** * Returns the height of the Window object. */ [ propget ,helpcontext(0x102E0006) ,helpstring("Returns the height of the Window object.") ] HRESULT Height( [out, retval] double* prop // The height of the Window object. ); /** * Sets the height of the Window object. */ [ propput ,helpcontext(0x102E0006) ,helpstring("Sets the height of the Window object.") ] HRESULT Height( [in] double prop // The height of the Window object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x102E0007) ,helpstring("Returns the index of the item in the collection.") ,restricted, hidden ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the distance from the left edge of the physical screen to the left edge of the Window object, in points. */ [ propget ,helpcontext(0x102E0008) ,helpstring("Returns the distance from the left edge of the physical screen to the left edge of the Window object, in points.") ] HRESULT Left( [out, retval] double* prop // The Window object's left edge distance. ); /** * Sets the distance from the left edge of the physical screen to the left edge of the Window object, in points. */ [ propput ,helpcontext(0x102E0008) ,helpstring("Sets the distance from the left edge of the physical screen to the left edge of the Window object, in points.") ] HRESULT Left( [in] double prop // The Window object's left edge distance. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x102E0009) ,helpstring("Returns the parent object for the specified object.") ,restricted, hidden ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * The distance from the top edge of the physical screen to the top edge of the Window object, in points. */ [ propget ,helpcontext(0x102E000A) ,helpstring("The distance from the top edge of the physical screen to the top edge of the Window object, in points.") ] HRESULT Top( [out, retval] double* prop // The Window object's top edge distance. ); /** * The distance from the top edge of the physical screen to the top edge of the Window object, in points. */ [ propput ,helpcontext(0x102E000A) ,helpstring("The distance from the top edge of the physical screen to the top edge of the Window object, in points.") ] HRESULT Top( [in] double prop // The Window object's top edge distance. ); /** * Returns the type of the Window object. */ [ propget ,helpcontext(0x102E000B) ,helpstring("Returns the type of the Window object.") ] HRESULT Type( [out, retval] ImsiWindowType* prop // The type of the Window object. ); /** * Returns the height of the space that can be used in the Window object area (the window is not maximized). */ [ propget ,helpcontext(0x102E000C) ,helpstring("Returns the height of the space that can be used in the Window object area (the window is not maximized).") ] HRESULT UsableHeight( [out, retval] double* prop // The usable height. ); /** * Returns the width of the space that can be used in the Window object area (the window is not maximized). */ [ propget ,helpcontext(0x102E000D) ,helpstring("Returns the width of the space that can be used in the Window object area (the window is not maximized).") ] HRESULT UsableWidth( [out, retval] double* prop // The usable width. ); /** * True if the Window object is visible. */ [ propget ,helpcontext(0x102E000E) ,helpstring("True if the Window object is visible.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if the Window object is visible. ); /** * True if the Window object is visible. */ [ propput ,helpcontext(0x102E000E) ,helpstring("True if the Window object is visible.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if the Window object is visible. ); /** * The distance from the left edge of the application window to the right edge of the application window. */ [ propget ,helpcontext(0x102E000F) ,helpstring("The distance from the left edge of the application window to the right edge of the application window.") ] HRESULT Width( [out, retval] double* prop // The width of the Window object. ); /** * The distance from the left edge of the application window to the right edge of the application window. */ [ propput ,helpcontext(0x102E000F) ,helpstring("The distance from the left edge of the application window to the right edge of the application window.") ] HRESULT Width( [in] double prop // The width of the Window object. ); /** * Returns the number of the window. */ [ propget ,helpcontext(0x102E0010) ,helpstring("Returns the number of the window.") ,restricted, hidden ] HRESULT WindowNumber( [out, retval] long* prop // The window number ); /** * Returns the state of the window. */ [ propget ,helpcontext(0x102E0011) ,helpstring("Returns the state of the window.") ,restricted, hidden ] HRESULT WindowState( [out, retval] ImsiWindowState* prop // The window state. ); /** * Sets the state of the window. */ [ propput ,helpcontext(0x102E0011) ,helpstring("Sets the state of the window.") ,restricted, hidden ] HRESULT WindowState( [in] ImsiWindowState prop // The window state. ); /** * Returns the zoom level as a percentage of actual size. */ [ propget ,helpcontext(0x102E0012) ,helpstring("Returns the zoom level as a percentage of actual size.") ,restricted, hidden ] HRESULT Zoom( [out, retval] double* prop // The zoom level. ); /** * Sets the zoom level as a percentage of actual size. */ [ propput ,helpcontext(0x102E0012) ,helpstring("Sets the zoom level as a percentage of actual size.") ,restricted, hidden ] HRESULT Zoom( [in] double prop // The zoom level. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Makes this object the active Window object. * * @see TCADAPI TCWDrawingActivate function */ [ helpcontext(0x102E0013) ,helpstring("Makes this object the active Window object.") ,restricted, hidden ] HRESULT Activate( ); /** * Closes the Window object. * * @see TCADAPI TCWDrawingClose function. */ [ helpcontext(0x102E0014) ,helpstring("Closes the Window object.") ,restricted, hidden ] HRESULT Close( [in, optional] VARIANT* SaveChanges, // True to save changes. [in, optional] VARIANT* FileName, // Alternate file name to save as. [in, optional] VARIANT* Filter // Name or index of preferred filter. ); /** * Scrolls a large amount. */ [ helpcontext(0x102E0015) ,helpstring("Scrolls a large amount.") ,restricted, hidden ] HRESULT LargeScroll( [in, optional] VARIANT* Down, // Number of pages to scroll down. [in, optional] VARIANT* Up, // Number of pages to scroll up. [in, optional] VARIANT* ToRight, // Number of pages to scroll right. [in, optional] VARIANT* ToLeft // Number of pages to scroll left. ); /** * Creates another Window object on this Window object's Drawing object. */ [ helpcontext(0x102E0016) ,helpstring("Creates another Window object on this Window object's Drawing object.") ,restricted, hidden ] HRESULT NewWindow( [out, retval] Window** prop // The newly created Window object. ); /** * Scrolls a small amount. */ [ helpcontext(0x102E0017) ,helpstring("Scrolls a small amount.") ,restricted, hidden ] HRESULT SmallScroll( [in, optional] VARIANT* Down, // Number of lines to scroll down. [in, optional] VARIANT* Up, // Number of lines to scroll up. [in, optional] VARIANT* ToRight, // Number of lines to scroll right. [in, optional] VARIANT* ToLeft // Number of lines to scroll left. ); }; /** * The collection of TurboCAD windows. */ [ object ,restricted, hidden ,uuid(6A481125-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x102F0000) ,helpstring("The collection of TurboCAD windows.") ] interface Windows : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x102F0001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,restricted, hidden ,helpcontext(0x102F0002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,restricted, hidden ,id(DISPID_VALUE) ,helpcontext(0x102F0003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Window** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,restricted, hidden ,helpcontext(0x102F0004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted, hidden ,id(DISPID_NEWENUM) ,helpcontext(0x102F0005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Arranges all the Window objects. */ [ helpcontext(0x102F0006) ,helpstring("Arranges all the Window objects.") ,restricted, hidden ] HRESULT Arrange( [in] ImsiArrangeStyle ArrangeStyle // The style to arrange. ); }; /** * An accelerator key binding. */ [ object ,restricted, hidden ,uuid(6A481126-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10300000) ,helpstring("An accelerator key binding.") ] interface KeyBinding : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10300001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the command associated with the key, as a string. */ [ propget ,helpcontext(0x10300002) ,helpstring("Returns the command associated with the key, as a string.") ] HRESULT Command( [out, retval] BSTR* prop // The command associated with the key. ); /** * Returns the command parameter associated with the key, as a string. */ [ propget ,helpcontext(0x10300003) ,helpstring("Returns the command parameter associated with the key, as a string.") ] HRESULT CommandParameter( [out, retval] BSTR* prop // The command parameter associated with the key. ); /** * True if the object is enabled. */ [ propget ,helpcontext(0x10300004) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [out, retval] IMSI_BOOL* prop // True if the object is enabled. ); /** * True if the object is enabled. */ [ propput ,helpcontext(0x10300004) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [in] IMSI_BOOL prop // True if the object is enabled. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10300005) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the category of the key. */ [ propget ,helpcontext(0x10300006) ,helpstring("Returns the category of the key.") ] HRESULT KeyCategory( [out, retval] ImsiKeyCategory* prop // The category of the key. ); /** * Returns the first code value of the key. */ [ propget ,helpcontext(0x10300007) ,helpstring("Returns the first code value of the key.") ] HRESULT KeyCode( [out, retval] long* prop // The first code value. ); /** * Returns the second code value of the key. */ [ propget ,helpcontext(0x10300008) ,helpstring("Returns the second code value of the key.") ] HRESULT KeyCode2( [out, retval] long* prop // The second code value. ); /** * Returns the user visible string associated with the key, as a string. */ [ propget ,helpcontext(0x10300009) ,helpstring("Returns the user visible string associated with the key, as a string.") ] HRESULT KeyString( [out, retval] BSTR* prop // The user visible string associated with the key. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x1030000A) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x1030000B) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Performs the action specified by the KeyBinding object. */ [ helpcontext(0x1030000C) ,helpstring("Performs the action specified by the KeyBinding object.") ] HRESULT Execute( ); /** * Binds the key to a new command. */ [ helpcontext(0x1030000D) ,helpstring("Binds the key to a new command.") ] HRESULT Rebind( [in] ImsiKeyCategory KeyCategory, // Category of the key. [in] BSTR Command, // Name of the command associate with the key. [in, optional] VARIANT* CommandParameter // Command parameter string. ); }; /** * The collection of accelerator key bindings. */ [ object ,restricted, hidden ,uuid(6A481127-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10310000) ,helpstring("The collection of accelerator key bindings.") ] interface KeyBindings : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10310001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10310002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10310003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] KeyBinding** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10310004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10310005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a KeyBinding object to the collection. */ [ helpcontext(0x10310006) ,helpstring("Adds a KeyBinding object to the collection.") ] HRESULT Add( [in] ImsiKeyCategory KeyCategory, // Category of the new key. [in] BSTR Command, // Command associated with the key. [in] long KeyCode, // First key code value. [in] VARIANT* KeyCode2, // Second key code value. [in, optional] VARIANT* CommandParameter, // Command parameter associated with the key. [out, retval] KeyBinding** prop // New KeyBinding object created. ); /** * Removes all KeyBinding objects from the collection. */ [ helpcontext(0x10310007) ,helpstring("Removes all KeyBinding objects from the collection.") ] HRESULT ClearAll( ); /** * Sets the current configuration of the KeyBindings collection to a file. */ [ helpcontext(0x10310008) ,helpstring("Sets the current configuration of the KeyBindings collection to a file.") ] HRESULT Open( [in] BSTR FileName // The name of the file. ); /** * Finds a KeyBinding object within the collection. */ [ helpcontext(0x10310009) ,helpstring("Finds a KeyBinding object within the collection.") ] HRESULT Key( [in] long KeyCode, // First key value. [in] VARIANT* KeyCode2, // Second key value. [out, retval] KeyBinding** prop // KeyBinding object found. ); /** * Saves the current configuration of the KeyBindings collection to a file. */ [ helpcontext(0x1031000A) ,helpstring("Saves the current configuration of the KeyBindings collection to a file.") ] HRESULT Save( [in] BSTR FileName // The name of the file. ); }; /** * A customizable command bar. */ [ object ,restricted, hidden ,uuid(6A48112A-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10320000) ,helpstring("A customizable command bar.") ] interface CommandBar : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified CommandBar object. */ [ propget ,helpcontext(0x10320001) ,helpstring("Returns an Application object that represents the creator of the specified CommandBar object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the CommandBar object is built-in. */ [ propget ,helpcontext(0x10320002) ,helpstring("True if the CommandBar object is built-in.") ] HRESULT Builtin( [out, retval] IMSI_BOOL* prop // True if the CommandBar object is built-in. ); /** * Returns the CommandBarControls collection. */ [ propget ,helpcontext(0x10320003) ,helpstring("Returns the CommandBarControls collection.") ] HRESULT Controls( [out, retval] CommandBarControls** prop // The CommandBarControls collection. ); /** * True if the CommandBar object is enabled. */ [ propget ,helpcontext(0x10320004) ,helpstring("True if the CommandBar object is enabled.") ] HRESULT Enabled( [out, retval] IMSI_BOOL* prop // True if the CommandBar object is enabled. ); /** * True if the CommandBar object is enabled. */ [ propput ,helpcontext(0x10320004) ,helpstring("True if the CommandBar object is enabled.") ] HRESULT Enabled( [in] IMSI_BOOL prop // True if the CommandBar object is enabled. ); /** * Returns the height of the CommandBar object. */ [ propget ,helpcontext(0x10320005) ,helpstring("Returns the height of the CommandBar object.") ] HRESULT Height( [out, retval] double* prop // The height of the CommandBar object. ); /** * Sets the height of the CommandBar object. */ [ propput ,helpcontext(0x10320005) ,helpstring("Sets the height of the CommandBar object.") ] HRESULT Height( [in] double prop // The height of the CommandBar object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10320006) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the horizontal position of the CommandBar object. */ [ propget ,helpcontext(0x10320007) ,helpstring("Returns the horizontal position of the CommandBar object.") ] HRESULT Left( [out, retval] double* prop // The horizontal position of the CommandBar object. ); /** * Sets the horizontal position of the CommandBar object. */ [ propput ,helpcontext(0x10320007) ,helpstring("Sets the horizontal position of the CommandBar object.") ] HRESULT Left( [in] double prop // The horizontal position of the CommandBar object. ); /** * Returns the name of the CommandBar object, as a string. */ [ propget ,helpcontext(0x10320008) ,helpstring("Returns the name of the CommandBar object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the CommandBar object. ); /** * Sets the name of the CommandBar object. */ [ propput ,helpcontext(0x10320008) ,helpstring("Sets the name of the CommandBar object.") ] HRESULT Name( [in] BSTR prop // The name of the CommandBar object. ); /** * Returns the parent of the specified CommandBar object. */ [ propget ,helpcontext(0x10320009) ,helpstring("Returns the parent of the specified CommandBar object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the position of the CommandBar object. */ [ propget ,helpcontext(0x1032000A) ,helpstring("Returns the position of the CommandBar object.") ] HRESULT Position( [out, retval] ImsiBarPosition* prop // The position of the CommandBar object. ); /** * Sets the position of the CommandBar object. */ [ propput ,helpcontext(0x1032000A) ,helpstring("Sets the position of the CommandBar object.") ] HRESULT Position( [in] ImsiBarPosition prop // The position of the CommandBar object. ); /** * Returns the CommandBar object's protection mask. */ [ propget ,helpcontext(0x1032000B) ,helpstring("Returns the CommandBar object's protection mask.") ] HRESULT Protection( [out, retval] ImsiBarProtection* prop // The CommandBar object's protection mask. ); /** * Sets the CommandBar object's protection mask. */ [ propput ,helpcontext(0x1032000B) ,helpstring("Sets the CommandBar object's protection mask.") ] HRESULT Protection( [in] ImsiBarProtection prop // The CommandBar object's protection mask. ); /** * Returns the row number of the CommandBar object's location. */ [ propget ,helpcontext(0x1032000C) ,helpstring("Returns the row number of the CommandBar object's location.") ] HRESULT RowIndex( [out, retval] long* prop // The row number of the CommandBar object's location. ); /** * Sets the row number of the CommandBar object's location. */ [ propput ,helpcontext(0x1032000C) ,helpstring("Sets the row number of the CommandBar object's location.") ] HRESULT RowIndex( [in] long prop // The row number of the CommandBar object's location. ); /** * Returns the tab number of the CommandBar object's location. */ [ propget ,helpcontext(0x1032000D) ,helpstring("Returns the tab number of the CommandBar object's location.") ] HRESULT TabIndex( [out, retval] long* prop // The tab number of the CommandBar object's location. ); /** * Sets the tab number of the CommandBar object's location. */ [ propput ,helpcontext(0x1032000D) ,helpstring("Sets the tab number of the CommandBar object's location.") ] HRESULT TabIndex( [in] long prop // The tab number of the CommandBar object's location. ); /** * Returns the CommandBars collection. */ [ propget ,helpcontext(0x1032000E) ,helpstring("Returns the CommandBars collection.") ] HRESULT Tabs( [out, retval] CommandBars** prop // The CommandBars collection. ); /** * True if the CommandBar object is temporary. */ [ propget ,helpcontext(0x1032000F) ,helpstring("True if the CommandBar object is temporary.") ] HRESULT Temporary( [out, retval] IMSI_BOOL* prop // True if the CommandBar object is temporary. ); /** * True if the CommandBar object is temporary. */ [ propput ,helpcontext(0x1032000F) ,helpstring("True if the CommandBar object is temporary.") ] HRESULT Temporary( [in] IMSI_BOOL prop // True if the CommandBar object is temporary. ); /** * Returns the vertical position of the CommandBar object. */ [ propget ,helpcontext(0x10320010) ,helpstring("Returns the vertical position of the CommandBar object.") ] HRESULT Top( [out, retval] double* prop // The vertical position of the CommandBar object. ); /** * Sets the vertical position of the CommandBar object. */ [ propput ,helpcontext(0x10320010) ,helpstring("Sets the vertical position of the CommandBar object.") ] HRESULT Top( [in] double prop // The vertical position of the CommandBar object. ); /** * Returns the type of the CommandBar object. */ [ propget ,helpcontext(0x10320011) ,helpstring("Returns the type of the CommandBar object.") ] HRESULT Type( [out, retval] ImsiBarType* prop // The type of the CommandBar object. ); /** * True if the CommandBar object is visible. */ [ propget ,helpcontext(0x10320012) ,helpstring("True if the CommandBar object is visible.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if the CommandBar object is visible. ); /** * True if the CommandBar object is visible. */ [ propput ,helpcontext(0x10320012) ,helpstring("True if the CommandBar object is visible.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if the CommandBar object is visible. ); /** * Returns the width of the CommandBar object. */ [ propget ,helpcontext(0x10320013) ,helpstring("Returns the width of the CommandBar object.") ] HRESULT Width( [out, retval] double* prop // The width of the CommandBar object. ); /** * Sets the width of the CommandBar object. */ [ propput ,helpcontext(0x10320013) ,helpstring("Sets the width of the CommandBar object.") ] HRESULT Width( [in] double prop // The width of the CommandBar object. ); /** * Private. Returns information about the __CommandBar object. */ [ propget ,restricted ,helpcontext(0x10320014) ,helpstring("Private. Returns information about the __CommandBar object.") ] HRESULT _Info( [out, retval] long* prop // Private information. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10320015) ,helpstring("Deletes the object.") ] HRESULT Delete( ); /** * Finds a CommandBarControl object within the collection. */ [ helpcontext(0x10320016) ,helpstring("Finds a CommandBarControl object within the collection.") ] HRESULT FindControl( [in] ImsiControlType Type, // The type of the CommandBarControl object. [in, optional] VARIANT* Id, // The ID of the CommandBarControl object. [in, optional] VARIANT* Tag, // The name of the CommandBarControl object. [in, optional] VARIANT* Visible, // True if the CommandBarControl object is visible. [in, optional] VARIANT* Recursive, // True to search all descendant CommandBar objects. [out, retval] CommandBarControl** prop // The CommandBarControl object found. ); /** * Resets the CommandBar object to its initial state. */ [ helpcontext(0x10320017) ,helpstring("Resets the CommandBar object to its initial state.") ] HRESULT Reset( ); }; /** * The collection of customizable command bars. */ [ object ,restricted, hidden ,uuid(6A48112B-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10330000) ,helpstring("The collection of customizable command bars.") ] interface CommandBars : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the active menu bar. */ [ propget ,helpcontext(0x10330001) ,helpstring("Returns the active menu bar.") ] HRESULT ActiveMenuBar( [out, retval] CommandBar** prop // The active menu bar. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10330002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10330003) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10330004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] CommandBar** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10330005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10330006) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new CommandBar object to the collection. */ [ helpcontext(0x10330007) ,helpstring("Adds a new CommandBar object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the new CommandBar object. [in, optional] VARIANT* Position, // The index of the new CommandBar object. [in, optional] VARIANT* MenuBar, // Which bar to add the object to. [in, optional] VARIANT* Temporary, // True if the CommandBar object is temporary. [out, retval] CommandBar** prop // The new CommandBar object object. ); /** * Adds an existing CommandBar object to the collection. */ [ helpcontext(0x10330008) ,helpstring("Adds an existing CommandBar object to the collection.") ] HRESULT AddTabbedBar( [in] CommandBar* prop, // The CommandBar object object. [in, optional] VARIANT* Position // The index of the CommandBar object. ); /** * Finds a CommandBarControl object within the collection. */ [ helpcontext(0x10330009) ,helpstring("Finds a CommandBarControl object within the collection.") ] HRESULT FindControl( [in] ImsiControlType Type, // The type of the CommandBarControl object. [in, optional] VARIANT* Id, // The ID of the CommandBarControl object. [in, optional] VARIANT* Tag, // The user-defined tag of the CommandBarControl object. [in, optional] VARIANT* Visible, // True if the CommandBarControl object is visible. [out, retval] CommandBarControl** prop // The CommandBarControl object found. ); /** * Finds the ID of a CommandBarControl object within the collection. */ [ helpcontext(0x1033000A) ,helpstring("Finds the ID of a CommandBarControl object within the collection.") ] HRESULT FindControlId( [in] ImsiControlType Type, // The type of the CommandBarControl object. [in, optional] VARIANT* CommandName, // The command name of the CommandBarControl object. [in, optional] VARIANT* Caption, // The name of the CommandBarControl object. [in, optional] VARIANT* Tag, // The user-defined tag of the CommandBarControl object. [in, optional] VARIANT* Visible, // True if the CommandBarControl object is visible. [out, retval] long* prop // The ID of the CommandBarControl object. ); /** * Sets the current configuration of the CommandBars collection to a file. */ [ helpcontext(0x1033000B) ,helpstring("Sets the current configuration of the CommandBars collection to a file.") ] HRESULT Open( [in] BSTR FileName, // The name of the file. [in, optional] VARIANT* Sections // Which sections of the file to open. ); /** * Saves the current configuration of the CommandBars collection to a file. */ [ helpcontext(0x1033000C) ,helpstring("Saves the current configuration of the CommandBars collection to a file.") ] HRESULT Save( [in] BSTR FileName, // The name of the file. [in, optional] VARIANT* Sections // Which sections of the file to save. ); }; /** * A command bar control. */ [ object ,restricted, hidden ,uuid(6A48113F-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10340000) ,helpstring("A command bar control.") ] interface CommandBarControl : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10340001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the CommandBarControl object is the first in a group. */ [ propget ,helpcontext(0x10340002) ,helpstring("True if the CommandBarControl object is the first in a group.") ] HRESULT BeginGroup( [out, retval] IMSI_BOOL* prop // True if the CommandBarControl object is the first in a group. ); /** * True if the CommandBarControl object is the first in a group. */ [ propput ,helpcontext(0x10340002) ,helpstring("True if the CommandBarControl object is the first in a group.") ] HRESULT BeginGroup( [in] IMSI_BOOL prop // True if the CommandBarControl object is the first in a group. ); /** * True if the object is built-in. */ [ propget ,helpcontext(0x10340003) ,helpstring("True if the object is built-in.") ] HRESULT Builtin( [out, retval] IMSI_BOOL* prop // True if the object is built-in. ); /** * Returns the caption of the object, as a string. */ [ propget ,helpcontext(0x10340004) ,helpstring("Returns the caption of the object, as a string.") ] HRESULT Caption( [out, retval] BSTR* prop // The caption of the object. ); /** * Sets the caption of the object. */ [ propput ,helpcontext(0x10340004) ,helpstring("Sets the caption of the object.") ] HRESULT Caption( [in] BSTR prop // The caption of the object. ); /** * Returns the CommandBar object of a popup control. */ [ propget ,helpcontext(0x10340005) ,helpstring("Returns the CommandBar object of a popup control.") ] HRESULT CommandBar( [out, retval] CommandBar** prop // The CommandBar object. ); /** * Returns the CommandBarControls collection of a popup control. */ [ propget ,helpcontext(0x10340006) ,helpstring("Returns the CommandBarControls collection of a popup control.") ] HRESULT Controls( [out, retval] CommandBarControls** prop // The CommandBarControls collection. ); /** * Returns the description of the object, as a string. */ [ propget ,helpcontext(0x10340007) ,helpstring("Returns the description of the object, as a string.") ] HRESULT Description( [out, retval] BSTR* prop // The description of the object. ); /** * Sets the description of the object. */ [ propput ,helpcontext(0x10340007) ,helpstring("Sets the description of the object.") ] HRESULT Description( [in] BSTR prop // The description of the object. ); /** * True if the object is enabled. */ [ propget ,helpcontext(0x10340008) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [out, retval] IMSI_BOOL* prop // True if the object is enabled. ); /** * True if the object is enabled. */ [ propput ,helpcontext(0x10340008) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [in] IMSI_BOOL prop // True if the object is enabled. ); /** * Returns the height of the object. */ [ propget ,helpcontext(0x10340009) ,helpstring("Returns the height of the object.") ] HRESULT Height( [out, retval] double* prop // The height of the object. ); /** * Sets the height of the object. */ [ propput ,helpcontext(0x10340009) ,helpstring("Sets the height of the object.") ] HRESULT Height( [in] double prop // The height of the object. ); /** * Returns the ID of the CommandBarControl object. */ [ propget ,helpcontext(0x1034000A) ,helpstring("Returns the ID of the CommandBarControl object.") ] HRESULT Id( [out, retval] long* prop // The ID of the CommandBarControl object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x1034000B) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the horizontal position of the object. */ [ propget ,helpcontext(0x1034000C) ,helpstring("Returns the horizontal position of the object.") ] HRESULT Left( [out, retval] double* prop // The horizontal position of the object. ); /** * Returns the menu group. */ [ propget ,helpcontext(0x1034000D) ,helpstring("Returns the menu group.") ] HRESULT OLEMenuGroup( [out, retval] ImsiOleMenuGroup* prop // The menu group. ); /** * Sets the menu group. */ [ propput ,helpcontext(0x1034000D) ,helpstring("Sets the menu group.") ] HRESULT OLEMenuGroup( [in] ImsiOleMenuGroup prop // The menu group. ); /** * Returns the object or macro performed when the CommandBarControl object is executed. */ [ propget ,helpcontext(0x1034000E) ,helpstring("Returns the object or macro performed when the CommandBarControl object is executed.") ] HRESULT OnAction( [out, retval] VARIANT* prop // An object or macro name. ); /** * Sets the object or macro performed when the CommandBarControl object is executed. */ [ propput ,helpcontext(0x1034000E) ,helpstring("Sets the object or macro performed when the CommandBarControl object is executed.") ] HRESULT OnAction( [in] VARIANT* prop // An object or macro name. ); /** * Returns the text parameter of the object, as a string. */ [ propget ,helpcontext(0x1034000F) ,helpstring("Returns the text parameter of the object, as a string.") ] HRESULT Parameter( [out, retval] BSTR* prop // The text parameter of the object. ); /** * Sets the text parameter of the object. */ [ propput ,helpcontext(0x1034000F) ,helpstring("Sets the text parameter of the object.") ] HRESULT Parameter( [in] BSTR prop // The text parameter of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10340010) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the text tag of the object, as a string. */ [ propget ,helpcontext(0x10340011) ,helpstring("Returns the text tag of the object, as a string.") ] HRESULT Tag( [out, retval] BSTR* prop // The text tag of the object. ); /** * Sets the text tag of the object. */ [ propput ,helpcontext(0x10340011) ,helpstring("Sets the text tag of the object.") ] HRESULT Tag( [in] BSTR prop // The text tag of the object. ); /** * True if the object is temporary. */ [ propget ,helpcontext(0x10340012) ,helpstring("True if the object is temporary.") ] HRESULT Temporary( [out, retval] IMSI_BOOL* prop // True if the object is temporary. ); /** * True if the object is temporary. */ [ propput ,helpcontext(0x10340012) ,helpstring("True if the object is temporary.") ] HRESULT Temporary( [in] IMSI_BOOL prop // True if the object is temporary. ); /** * Returns the tooltip text of the object, as a string. */ [ propget ,restricted, hidden ,helpcontext(0x10340013) ,helpstring("Returns the tooltip text of the object, as a string.") ] HRESULT TooltipText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The tooltip text of the object. ); /** * Sets the tooltip text of the object. */ [ propput ,restricted, hidden ,helpcontext(0x10340013) ,helpstring("Sets the tooltip text of the object.") ] HRESULT TooltipText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The tooltip text of the object. ); /** * Returns the vertical position of the object. */ [ propget ,helpcontext(0x10340014) ,helpstring("Returns the vertical position of the object.") ] HRESULT Top( [out, retval] double* prop // The vertical position of the object. ); /** * Returns the type of the CommandBarControl object. */ [ propget ,helpcontext(0x10340015) ,helpstring("Returns the type of the CommandBarControl object.") ] HRESULT Type( [out, retval] ImsiControlType* prop // The type of the CommandBarControl object. ); /** * True if the CommandBarControl object is visible. */ [ propget ,helpcontext(0x10340016) ,helpstring("True if the CommandBarControl object is visible.") ] HRESULT Visible( [out, retval] IMSI_BOOL* prop // True if the CommandBarControl object is visible. ); /** * True if the CommandBarControl object is visible. */ [ propput ,helpcontext(0x10340016) ,helpstring("True if the CommandBarControl object is visible.") ] HRESULT Visible( [in] IMSI_BOOL prop // True if the CommandBarControl object is visible. ); /** * Returns the width of the object. */ [ propget ,helpcontext(0x10340017) ,helpstring("Returns the width of the object.") ] HRESULT Width( [out, retval] double* prop // The width of the object. ); /** * Sets the width of the object. */ [ propput ,helpcontext(0x10340017) ,helpstring("Sets the width of the object.") ] HRESULT Width( [in] double prop // The width of the object. ); /** * Private. Returns information about the __CommandBarControl object. */ [ propget ,restricted ,helpcontext(0x10340018) ,helpstring("Private. Returns information about the __CommandBarControl object.") ] HRESULT _Info( [out, retval] long* prop // Private information. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Copies the object to another location. */ [ helpcontext(0x10340019) ,helpstring("Copies the object to another location.") ] HRESULT Copy( [in] CommandBar *Bar, // The bar to copy to. [in, optional] VARIANT* Before, // The location within the bar. [out, retval] CommandBarControl** prop // The new copy. ); /** * Deletes the object. */ [ helpcontext(0x1034001A) ,helpstring("Deletes the object.") ] HRESULT Delete( [in, optional] VARIANT* Temporary // True if the deletion is temporary. ); /** * Performs the action specified by the CommandBarControl object. */ [ helpcontext(0x1034001B) ,helpstring("Performs the action specified by the CommandBarControl object.") ] HRESULT Execute( ); /** * Moves the object to another location. */ [ helpcontext(0x1034001C) ,helpstring("Moves the object to another location.") ] HRESULT Move( [in] CommandBar *Bar, // The bar to copy to. [in, optional] VARIANT* Before, // The location within the bar. [out, retval] CommandBarControl** prop // The moved object. ); /** * Resets the CommandBarControl object to its initial state. */ [ helpcontext(0x1034001D) ,helpstring("Resets the CommandBarControl object to its initial state.") ] HRESULT Reset( ); /** * Sets the input focus to this CommandBarControl object. */ [ helpcontext(0x1034001E) ,helpstring("Sets the input focus to this CommandBarControl object.") ] HRESULT SetFocus( ); }; /** * A collection of command bar controls. */ [ object ,restricted, hidden ,uuid(6A481140-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10350000) ,helpstring("A collection of command bar controls.") ] interface CommandBarControls : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10350001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10350002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10350003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] CommandBarControl** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10350004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10350005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new CommandBarControl object to the collection. */ [ helpcontext(0x10350006) ,helpstring("Adds a new CommandBarControl object to the collection.") ] HRESULT Add( [in] ImsiControlType Type, // The type of the new CommandBarControl object. [in, optional] VARIANT* Id, // The id of the new CommandBarControl object. [in, optional] VARIANT* Parameter, // Which bar to add the object to. [in, optional] VARIANT* Before, // Where to add the new CommandBarControl object. [in, optional] VARIANT* Temporary, // True if the CommandBarControl object is temporary. [out, retval] CommandBarControl** prop // The new CommandBarControl object object. ); }; /** * A TurboCAD's layer set object. */ [ object ,uuid(39710626-93A9-43D6-90C5-D37C61B831EE), ,oleautomation ,dual ,helpcontext(0x10540000) ,helpstring("A TurboCAD LayersSet object.") ] interface LayersSet : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10350007) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10350008) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10350009) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Layer** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x1035000A) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the name of the LayersSet object */ [ propget ,helpcontext(0x1035000B) ,helpstring("Returns the name of the ILayerSet") ] HRESULT Name( [out, retval] BSTR* prop // Returns the name of the LayersSet object ); /** * True if the object is active. */ [ propget ,helpcontext(0x1035000C) ,helpstring("True if the object is active.") ] HRESULT Active( [out, retval] IMSI_BOOL* prop // True if the layersset is active. ); /** * ID of the LayersSet object. */ [ propget ,helpcontext(0x1035000D) ,helpstring("ID of the LayersSet object.") ] HRESULT ID( [out, retval] long* prop // returns ID of the LayersSet object ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Activates the layersset. */ [ helpcontext(0x1035000F) ,helpstring("Activates the layersset.") ] HRESULT Activate( [in, optional] VARIANT* View // If supplied, the View object to display layersset in. ); /** * Adds a new layer to the layersset */ [ helpcontext(0x10350010) ,helpstring("Add a new layer to the layersset.") ] HRESULT AddLayer( [in] BSTR Name ); /** * Removess a layer from the layersset */ [ helpcontext(0x10350011) ,helpstring("Removes a layer from the layersset.") ] HRESULT RemoveLayer( [in] BSTR Name ); /** * Clears the contents of the collection */ [ helpcontext(0x10350012) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear(); /** * Deletes the object. */ [ helpcontext(0x10350013) ,helpstring("Deletes the object.") ] HRESULT Delete( ); } /** * A TurboCAD's layerssets collection. */ [ object ,uuid(93E0830A-D3B8-450A-AD77-AD7C7DAE2254) ,oleautomation ,dual ,helpcontext(0x10550000) ,helpstring("A TurboCAD LayersSets collection.") ] interface LayersSets : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10350015) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10350016) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10350017) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] LayersSet** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10350018) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10350019) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new LayersSet object to the collection. */ [ helpcontext(0x1035001A) ,helpstring("Adds a new LayersSet object to the collection.") ] HRESULT Add( [in] BSTR Name, [out, retval] LayersSet** prop ); /** * Clears the contents of the collection. */ [ helpcontext(0x1035001B) ,helpstring("Clears the contents of the collection.") ] HRESULT Clear(); } /** * A TurboCAD drawing or editing tool. */ [ object ,uuid(6A48112C-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10360000) ,helpstring("A TurboCAD drawing or editing tool.") ] interface Tool : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * True if the object is active. */ [ propget ,helpcontext(0x10360001) ,helpstring("True if the object is active.") ] HRESULT Active( [out, retval] IMSI_BOOL* prop // True if the object is active. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10360002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * True if the object is built-in. */ [ propget ,helpcontext(0x10360003) ,helpstring("True if the object is built-in.") ,restricted, hidden ] HRESULT Builtin( [out, retval] IMSI_BOOL* prop // True if the object is built-in. ); /** * Returns the name of the Tool object's category, as a string. */ [ propget ,helpcontext(0x10360004) ,helpstring("Returns the name of the Tool object's category, as a string.") ] HRESULT Category( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The name of the Tool object's category. ); /** * Sets the name of the Tool object's category, as a string. */ [ propput ,helpcontext(0x10360004) ,helpstring("Sets the name of the Tool object's category, as a string.") ] HRESULT Category( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The name of the Tool object's category. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10360005) ,helpstring("Returns the name of the object, as a string.") ] HRESULT CommandName( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The name of the object. ); /** * Sets the name of the object, as a string. */ [ propput ,helpcontext(0x10360005) ,helpstring("Sets the name of the object, as a string.") ] HRESULT CommandName( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The name of the object. ); /** * True if the object is enabled. */ [ propget ,helpcontext(0x10360006) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [out, retval] IMSI_BOOL* prop // True if the object is enabled. ); /** * True if the object is enabled. */ [ propput ,helpcontext(0x10360006) ,helpstring("True if the object is enabled.") ] HRESULT Enabled( [in] IMSI_BOOL prop // True if the object is enabled. ); /** * Returns the command identifier. */ [ propget ,helpcontext(0x10360007) ,helpstring("Returns the command identifier.") ] HRESULT Id( [out, retval] long* prop // The command identifier. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10360008) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the string that will appear in the menu. */ [ propget ,helpcontext(0x10360009) ,helpstring("Returns the string that will appear in the menu.") ] HRESULT MenuText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The string that will appear in the menu. ); /** * Sets the string that will appear in the menu. */ [ propput ,helpcontext(0x10360009) ,helpstring("Sets the string that will appear in the menu.") ] HRESULT MenuText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The string that will appear in the menu. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x1036000A) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Returns the string that will appear in the status bar. */ [ propget ,helpcontext(0x1036000B) ,helpstring("Returns the string that will appear in the status bar.") ] HRESULT Prompt( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The string that will appear in the status bar. ); /** * Sets the string that will appear in the status bar. */ [ propput ,helpcontext(0x1036000B) ,helpstring("Sets the string that will appear in the status bar.") ] HRESULT Prompt( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The string that will appear in the status bar. ); /** * Returns the string that will appear in the menu. */ [ propget ,helpcontext(0x1036000C) ,helpstring("Returns the string that will appear in tool tips.") ] HRESULT TooltipText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[out, retval] BSTR* prop // The string that will appear in tool tips. ); /** * Sets the string that will appear in tool tips. */ [ propput ,helpcontext(0x1036000C) ,helpstring("Sets the string that will appear in tool tips.") ] HRESULT TooltipText( #if (_USE_LCID) [in, lcid] long lcid #else [in, optional] long lcid #endif ,[in] BSTR prop // The string that will appear in tool tips. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Activates the object. */ [ helpcontext(0x1036000D) ,helpstring("Activates the object.") ] HRESULT Activate( ); /** * Deletes the object. */ [ helpcontext(0x1036000E) ,helpstring("Deletes the object.") ,restricted, hidden ] HRESULT Delete( ); ///////////////////////////// TC 8.1 Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [ propget ,helpcontext(0x1036000F) ,helpstring("Returns the Tool object's Properties collection.") ] HRESULT Properties( [out, retval] Properties** prop // The Properties collection. ); [ propget ,helpcontext(0x10360010) ,helpstring("Returns the Tool object's status.") ] HRESULT Status( [out, retval] long* prop // The status value. ); [ propput ,helpcontext(0x10360010) ,helpstring("Sets the Tool object's status.") ] HRESULT Status( [in] long prop // The status value. ); }; /** * The collection of TurboCAD drawing or editing tool. */ [ object ,uuid(6A48112D-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10370000) ,helpstring("The collection of TurboCAD drawing or editing tool.") ] interface Tools : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns the currently active Tool object. */ [ propget ,helpcontext(0x10370001) ,helpstring("Returns the currently active Tool object.") ] HRESULT ActiveTool( [out, retval] Tool** prop // The currently active Tool object. ); /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10370002) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10370003) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10370004) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Tool** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10370005) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IApplication** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10370006) ,helpstring("Private. Creates an enumeration object.") ,restricted, hidden ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * An external procedure that can be executed from within TurboCAD. */ [ object ,restricted, hidden ,uuid(6A48112E-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10380000) ,helpstring("An external procedure that can be executed from within TurboCAD.") ] interface AddIn : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10380001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10380002) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10380003) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10380004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10380005) ,helpstring("Deletes the object.") ] HRESULT Delete( ); }; /** * The collection of external procedures. */ [ object ,restricted, hidden ,uuid(6A48112F-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x10390000) ,helpstring("The collection of external procedures.") ] interface AddIns : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10390001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10390002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10390003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] AddIn** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10390004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10390005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * Options that change session (Application object) behavior. */ [ object ,restricted, hidden ,uuid(6A481102-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103A0000) ,helpstring("Options that change session (Application object) behavior.") ] interface ApplicationOptions : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * True if toolbars are displayed using colored faces. */ [ propget ,helpcontext(0x103A0001) ,helpstring("True if toolbars are displayed using colored faces.") ] HRESULT ColorButtons( [out, retval] IMSI_BOOL* colorButtons // True if toolbars are displayed using colored faces. ); /** * True if toolbars are displayed using colored faces. */ [ propput ,helpcontext(0x103A0001) ,helpstring("True if toolbars are displayed using colored faces.") ] HRESULT ColorButtons( [in] IMSI_BOOL colorButtons // True if toolbars are displayed using colored faces. ); /** * Returns how TurboCAD displays coordinates in the status bar. */ [ propget ,helpcontext(0x103A0002) ,helpstring("Returns how TurboCAD displays coordinates in the status bar.") ] HRESULT CoordinateStyle( [out, retval] ImsiCoordinateStyle* prop // Enumerated value. ); /** * Sets how TurboCAD displays coordinates in the status bar. */ [ propput ,helpcontext(0x103A0002) ,helpstring("Sets how TurboCAD displays coordinates in the status bar.") ] HRESULT CoordinateStyle( [in] ImsiCoordinateStyle prop // Enumerated value. ); /** * True if backup files will be created. */ [ propget ,helpcontext(0x103A0003) ,helpstring("True if backup files will be created.") ] HRESULT CreateBackup( [out, retval] IMSI_BOOL* prop // True if backup files will be created. ); /** * True if backup files will be created. */ [ propput ,helpcontext(0x103A0003) ,helpstring("True if backup files will be created.") ] HRESULT CreateBackup( [in] IMSI_BOOL prop // True if backup files will be created. ); /** * Returns the default path TurboCAD uses when it opens files. */ [ propget ,helpcontext(0x103A0004) ,helpstring("Returns the default path TurboCAD uses when it opens files.") ] HRESULT DefaultFilePath( [out, retval] BSTR* prop // The path, as a string. ); /** * Sets the default path TurboCAD uses when it opens files. */ [ propput ,helpcontext(0x103A0004) ,helpstring("Sets the default path TurboCAD uses when it opens files.") ] HRESULT DefaultFilePath( [in] BSTR prop // The path, as a string. ); /** * True if TurboCAD displays certain alerts and messages while a macro is running. */ [ propget ,helpcontext(0x103A0005) ,helpstring("True if TurboCAD displays certain alerts and messages while a macro is running.") ] HRESULT DisplayAlerts( [out, retval] IMSI_BOOL* prop // True if TurboCAD displays certain alerts and messages while a macro is running. ); /** * True if TurboCAD displays certain alerts and messages while a macro is running. */ [ propput ,helpcontext(0x103A0005) ,helpstring("True if TurboCAD displays certain alerts and messages while a macro is running.") ] HRESULT DisplayAlerts( [in] IMSI_BOOL prop // True if TurboCAD displays certain alerts and messages while a macro is running. ); /** * True if TurboCAD is using large toolbar buttons. */ [ propget ,helpcontext(0x103A0006) ,helpstring("True if TurboCAD is using large toolbar buttons.") ] HRESULT LargeButtons( [out, retval] IMSI_BOOL* prop // True if TurboCAD is using large toolbar buttions. ); /** * True if TurboCAD is using large toolbar buttons. */ [ propput ,helpcontext(0x103A0006) ,helpstring("True if TurboCAD is using large toolbar buttons.") ] HRESULT LargeButtons( [in] IMSI_BOOL prop // True if TurboCAD is using large toolbar buttons. ); /** * True if a prompt will appear when Drawing objects are saved. */ [ propget ,helpcontext(0x103A0007) ,helpstring("True if a prompt will appear when Drawing objects are saved.") ] HRESULT PromptForSummaryInfo( [out, retval] IMSI_BOOL* prop ); /** * True if a prompt will appear when Drawing objects are saved. */ [ propput ,helpcontext(0x103A0007) ,helpstring("True if a prompt will appear when Drawing objects are saved.") ] HRESULT PromptForSummaryInfo( [in] IMSI_BOOL prop ); /** * True if selection methods will replace, rather than add to, the Selection object. */ [ propget ,helpcontext(0x103A0008) ,helpstring("True if selection methods will replace, rather than add to, the Selection object.") ] HRESULT ReplaceSelection( [out, retval] IMSI_BOOL* prop ); /** * True if selection methods will replace, rather than add to, the Selection object. */ [ propput ,helpcontext(0x103A0008) ,helpstring("True if selection methods will replace, rather than add to, the Selection object.") ] HRESULT ReplaceSelection( [in] IMSI_BOOL prop ); /** * True if all links in a Drawing object will be updated at Open time. */ [ propget ,helpcontext(0x103A0009) ,helpstring("True if all links in a Drawing object will be updated at Open time.") ] HRESULT UpdateLinksAtOpen( [out, retval] IMSI_BOOL* prop ); /** * True if all links in a Drawing object will be updated at Open time. */ [ propput ,helpcontext(0x103A0009) ,helpstring("True if all links in a Drawing object will be updated at Open time.") ] HRESULT UpdateLinksAtOpen( [in] IMSI_BOOL prop ); /** * True if all links in a Drawing object will be updated at Print time. */ [ propget ,helpcontext(0x103A000A) ,helpstring("True if all links in a Drawing object will be updated at Print time.") ] HRESULT UpdateLinksAtPrint( [out, retval] IMSI_BOOL* prop ); /** * True if all links in a Drawing object will be updated at Print time. */ [ propput ,helpcontext(0x103A000A) ,helpstring("True if all links in a Drawing object will be updated at Print time.") ] HRESULT UpdateLinksAtPrint( [in] IMSI_BOOL prop ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * Options that affect Drawing object behavior. */ [ object ,restricted, hidden ,uuid(6A481106-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103B0000) ,helpstring("Options that affect Drawing object behavior.") ] interface DrawingOptions : IDispatch { }; /** * Procedures triggered by Application object actions. */ [ object ,restricted, hidden ,uuid(6A481104-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103C0000) ,helpstring("Procedures triggered by Application object actions.") ] interface ApplicationCallbacks : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * OnData. */ [ propget ,helpcontext(0x103C0001) ,helpstring("OnData.") ] HRESULT OnData( [out, retval] BSTR* prop ); /** * OnData. */ [ propput ,helpcontext(0x103C0001) ,helpstring("OnData.") ] HRESULT OnData( [in] BSTR prop ); /** * Returns the name of the macro that runs whenever you double-click anywhere on a drawing. */ [ propget ,helpcontext(0x103C0002) ,helpstring("Returns the name of the macro that runs whenever you double-click anywhere on a drawing.") ] HRESULT OnDoubleClick( [out, retval] BSTR* prop ); /** * Sets the name of the macro that runs whenever you double-click anywhere on a drawing. */ [ propput ,helpcontext(0x103C0002) ,helpstring("Sets the name of the macro that runs whenever you double-click anywhere on a drawing.") ] HRESULT OnDoubleClick( [in] BSTR prop ); /** * Returns the name of the macro that runs when the user activates any drawing. */ [ propget ,helpcontext(0x103C0003) ,helpstring("Returns the name of the macro that runs when the user activates any drawing.") ] HRESULT OnDrawingActivate( [out, retval] BSTR* prop ); /** * Sets the name of the macro that runs when the user activates any drawing. */ [ propput ,helpcontext(0x103C0003) ,helpstring("Sets the name of the macro that runs when the user activates any drawing.") ] HRESULT OnDrawingActivate( [in] BSTR prop ); /** * Returns the name of the macro that runs when the user deactivates any drawing. */ [ propget ,helpcontext(0x103C0004) ,helpstring("Returns the name of the macro that runs when the user deactivates any drawing.") ] HRESULT OnDrawingDeactivate( [out, retval] BSTR* prop ); /** * Sets the name of the macro that runs when the user deactivates any drawing. */ [ propput ,helpcontext(0x103C0004) ,helpstring("Sets the name of the macro that runs when the user deactivates any drawing.") ] HRESULT OnDrawingDeactivate( [in] BSTR prop ); /** * OnEntry. */ [ propget ,helpcontext(0x103C0005) ,helpstring("OnEntry.") ] HRESULT OnEntry( [out, retval] BSTR* prop ); /** * OnEntry. */ [ propput ,helpcontext(0x103C0005) ,helpstring("OnEntry.") ] HRESULT OnEntry( [in] BSTR prop ); /** * Runs a specified procedure when a particular key or key combination is pressed. */ [ helpcontext(0x103C0006) ,helpstring("Runs a specified procedure when a particular key or key combination is pressed.") ] HRESULT OnKey( [in] BSTR Key, [in, optional] VARIANT* Procedure ); /** * Sets the Repeat menu item and the name of the procedure that will run if you choose Repeat from the Edit menu after running the procedure that sets this property. */ [ helpcontext(0x103C0007) ,helpstring("Sets the Repeat menu item and the name of the procedure that will run if you choose Repeat from the Edit menu after running the procedure that sets this property.") ] HRESULT OnRepeat( [in] BSTR Text, [in] BSTR Procedure ); /** * Schedules a procedure to run at a specified time in the future (either at a specific time of day or after a specific period has passed). */ [ helpcontext(0x103C0008) ,helpstring("Schedules a procedure to run at a specified time in the future (either at a specific time of day or after a specific period has passed).") ] HRESULT OnTime( [in] VARIANT* EarliestTime, [in] BSTR Procedure, [in, optional] VARIANT* LatestTime, [in, optional] VARIANT* Schedule ); /** * Sets the Undo menu item and the name of the procedure that will run if you choose Undo from the Edit menu after running the procedure that sets this property. */ [ helpcontext(0x103C0009) ,helpstring("Sets the Undo menu item and the name of the procedure that will run if you choose Undo from the Edit menu after running the procedure that sets this property.") ] HRESULT OnUndo( [in] BSTR Text, [in] BSTR Procedure ); /** * Returns the name of the procedure that runs whenever you switch to a window. */ [ propget ,helpcontext(0x103C000A) ,helpstring("Returns the name of the procedure that runs whenever you switch to a window.") ] HRESULT OnWindow( [out, retval] BSTR* prop ); /** * Sets the name of the procedure that runs whenever you switch to a window. */ [ propput ,helpcontext(0x103C000A) ,helpstring("Sets the name of the procedure that runs whenever you switch to a window.") ] HRESULT OnWindow( [in] BSTR prop ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * Procedures triggered by Drawing object actions. */ [ object ,restricted, hidden ,uuid(6A481105-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103D0000) ,helpstring("Procedures triggered by Drawing object actions.") ] interface DrawingCallbacks : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * OnData. * Unimplemented. * <p> */ [ propget ,helpcontext(0x103D0001) ,helpstring("Unimplemented. OnData.") ] HRESULT OnData( [out, retval] BSTR* retval ); /** * OnData. * Unimplemented. * <p> */ [ propput ,helpcontext(0x103D0001) ,helpstring("Unimplemented. OnData.") ] HRESULT OnData( [in] BSTR prop ); /** * OnDoubleClick. * Unimplemented. * <p> */ [ propget ,helpcontext(0x103D0002) ,helpstring("Unimplemented. OnDoubleClick.") ] HRESULT OnDoubleClick( [out, retval] BSTR* retval ); /** * OnDoubleClick. * Unimplemented. * <p> */ [ propput ,helpcontext(0x103D0002) ,helpstring("Unimplemented. OnDoubleClick.") ] HRESULT OnDoubleClick( [in] BSTR prop ); /** * OnEntry. * Unimplemented. * <p> */ [ propget ,helpcontext(0x103D0003) ,helpstring("Unimplemented. OnEntry.") ] HRESULT OnEntry( [out, retval] BSTR* retval ); /** * OnEntry. * Unimplemented. * <p> */ [ propput ,helpcontext(0x103D0003) ,helpstring("Unimplemented. OnEntry.") ] HRESULT OnEntry( [in] BSTR prop ); /** * OnSave. * Unimplemented. * <p> */ [ propget ,helpcontext(0x103D0004) ,helpstring("Unimplemented. OnSave.") ] HRESULT OnSave( [out, retval] VARIANT* retval ); /** * OnSave. * Unimplemented. * <p> */ [ propput ,helpcontext(0x103D0004) ,helpstring("Unimplemented. OnSave.") ] HRESULT OnSave( [in] VARIANT* prop ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * Procedures triggered by Graphic object actions. */ [ object ,restricted, hidden ,uuid(6A48113E-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103E0000) ,helpstring("Procedures triggered by Graphic object actions.") ] interface GraphicCallbacks : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * OnAction. * Unimplemented. */ [ propget ,helpcontext(0x103E0001) ,helpstring("Unimplemented. OnAction.") ] HRESULT OnAction( [out, retval] VARIANT* retval ); /** * OnAction. * Unimplemented. */ [ propput ,helpcontext(0x103E0001) ,helpstring("Unimplemented. OnAction.") ] HRESULT OnAction( [in] VARIANT* prop ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }; /** * Events sent by Application object. * Implement these events in your controlling application (as an IDispatch object). * Then, pass a pointer to the object to TurboCAD using the IApplication::ConnectEvents * method. Set the mask parameter of IApplication::ConnectEvents to only receive * a subset of the full event set. * * @see IApplication::ConnectEvents * @see IApplication::DisconnectEvents */ [ object ,uuid(6A481301-E531-11CF-A115-00A024158DAF) ,oleautomation ,dual ,helpcontext(0x103F0000) ,helpstring("TurboCAD Events.") ] interface IAppEvents : IDispatch { /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Event fired by TurboCAD before the Application object quits.")] */ [ id(1) ,helpcontext(0x103F0001) ,helpstring("Event fired by TurboCAD before the Application object quits.") ] HRESULT BeforeExit( [in] IApplication* TheApp, // The Application object. [in, out] IMSI_BOOL* Cancel // Set to True to cancel the quit operation. ); /** * Event fired by TurboCAD after a new Drawing object is created.")] */ [ id(2) ,helpcontext(0x103F0002) ,helpstring("Event fired by TurboCAD after a new Drawing object is created.") ] HRESULT DrawingNew( [in] IDrawing* WhichDrawing // The Drawing object that was created. ); /** * Event fired by TurboCAD after an existing Drawing object was opened.")] */ [ id(3) ,helpcontext(0x103F0003) ,helpstring("Event fired by TurboCAD after an existing Drawing object was opened.") ] HRESULT DrawingOpen( [in] IDrawing* WhichDrawing // The Drawing object that was created. ); /** * Event fired by TurboCAD after a Drawing object was activated.")] */ [ id(4) ,helpcontext(0x103F0004) ,helpstring("Event fired by TurboCAD after a Drawing object was activated.") ] HRESULT DrawingActivate( [in] IDrawing* WhichDrawing // The Drawing object that was activated. ); /** * Event fired by TurboCAD when a Drawing object will be deactivated.")] */ [ id(5) ,helpcontext(0x103F0005) ,helpstring("Event fired by TurboCAD when a Drawing object will be deactivated.") ] HRESULT DrawingDeactivate( [in] IDrawing* WhichDrawing // The Drawing object that will be dactivated. ); /** * Event fired by TurboCAD before a Drawing object is closed.")] */ [ id(6) ,helpcontext(0x103F0006) ,helpstring("Event fired by TurboCAD before a Drawing object is closed.") ] HRESULT DrawingBeforeClose( [in] IDrawing* WhichDrawing, // The Drawing object that will be closed. [in, out] IMSI_BOOL* Cancel // Set to True to cancel the close operation. ); /** * Event fired by TurboCAD before a Drawing object is saved.")] */ [ id(7) ,helpcontext(0x103F0007) ,helpstring("Event fired by TurboCAD before a Drawing object is saved.") ] HRESULT DrawingBeforeSave( [in] IDrawing* WhichDrawing, // The Drawing object that will be saved. [in, out] IMSI_BOOL* SaveAs, // Set to True to save the Drawing object under a different name. [in, out] IMSI_BOOL* Cancel // Set to True to cancel the save operation. ); /** * Event fired by TurboCAD when a Window object was resized.")] */ [ id(8) ,helpcontext(0x103F0008) ,helpstring("Event fired by TurboCAD when a Window object was resized.") ] HRESULT WindowResize( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow // The Window object that was resized. ); /** * Event fired by TurboCAD when a Window object was activated. */ [ id(0x9) ,helpcontext(0x103F0009) ,helpstring("Event fired by TurboCAD when a Window object was activated.") ] HRESULT WindowActivate( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow // The Window object that was activated. ); /** * Event fired by TurboCAD before a Window object is deactivated. */ [ id(0xa) ,helpcontext(0x103F000A) ,helpstring("Event fired by TurboCAD before a Window object is deactivated.") ] HRESULT WindowDeactivate( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow // The Window object that will be deactivated. ); /** * Event fired by TurboCAD when a mouse button was pressed. */ [ id(0xb) ,helpcontext(0x103F000B) ,helpstring("Event fired by TurboCAD when a mouse button was pressed.") ] HRESULT MouseDown( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] ImsiMouseButton Button, // Which button was pressed. [in] long Shift, // Which modifier keys were down when the action occurred. [in] long X, // The x window coordinate where the action occurred. [in] long Y, // The y window coordinate where the action occurred. [in, out] IMSI_BOOL* Cancel // True to cancel the mouse down operation. ); /** * Event fired by TurboCAD when a mouse button was released. */ [ id(0xc) ,helpcontext(0x103F000C) ,helpstring("Event fired by TurboCAD when a mouse button was released.") ] HRESULT MouseUp( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] ImsiMouseButton Button, // Which button was released. [in] long Shift, // Which modifier keys were down when the action occurred. [in] long X, // The x window coordinate where the action occurred. [in] long Y, // The y window coordinate where the action occurred. [in, out] IMSI_BOOL* Cancel // True to cancel the mouse up operation. ); /** * Event fired by TurboCAD when the mouse was moved. */ [ id(0xd) ,helpcontext(0x103F000D) ,helpstring("Event fired by TurboCAD when the mouse was moved.") ] HRESULT MouseMove( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] long Shift, // Which modifier keys were down when the action occurred. [in] long X, // The x window coordinate where the action occurred. [in] long Y, // The y window coordinate where the action occurred. [in, out] IMSI_BOOL* Cancel // True to cancel the move operation. ); /** * Event fired by TurboCAD before a double click action is taken. */ [ id(0xe) ,helpcontext(0x103F000E) ,helpstring("Event fired by TurboCAD before a double click action is taken.") ] HRESULT BeforeDoubleClick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] Selection* Sel, // The active Selection object. [in, out] IMSI_BOOL* Cancel // True to cancel the double click operation. ); /** * Event fired by TurboCAD before a right click action is taken. */ [ id(0xf) ,helpcontext(0x103F000F) ,helpstring("Event fired by TurboCAD before a right click action is taken.") ] HRESULT BeforeRightClick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] Selection* Sel, // The active Selection object. [in, out] IMSI_BOOL* Cancel // True to cancel the right click operation. ); /** * Event fired by TurboCAD after the Selection object has changed. */ [ id(0x10) ,helpcontext(0x103F0010) ,helpstring("Event fired by TurboCAD after the Selection object has changed.") ] HRESULT SelectionChange( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] Selection* Sel // The new active Selection object. ); /** * Event fired by TurboCAD when a CommandBarControl object was hit. */ [ id(0x11) ,helpcontext(0x103F0011) ,helpstring("Event fired by TurboCAD when a CommandBarControl object was hit.") ] HRESULT CommandBarControlHit( [in] CommandBarControl* WhichControl, // The CommandBarControl object. [in, out] IMSI_BOOL* Cancel // True to cancel the operation. ); /** * Event fired by TurboCAD to inquire on the status of a CommandBarControl object. */ [ id(0x12) ,helpcontext(0x103F0012) ,helpstring("Event fired by TurboCAD to inquire on the status of a CommandBarControl object.") ] HRESULT CommandBarControlStatus( [in] CommandBarControl* WhichControl // The CommandBarControl object. ); /** * Event fired by TurboCAD when a Tool object is activated. */ [ id(0x13) ,helpcontext(0x103F0013) ,helpstring("Event fired by TurboCAD when a Tool object is activated.") ] HRESULT RunTool( [in] Tool* WhichTool // The Tool object that was activated. ); /** * Event fired by TurboCAD when a point was picked in a View object. */ [ id(0x14) ,helpcontext(0x103F0014) ,helpstring("Event fired by TurboCAD when a point was picked in a View object.") ] HRESULT PointSnapped( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] long X, // The x window coordinate where the action occurred. [in] long Y, // The y window coordinate where the action occurred. [in] IVertex* PointRaw, // A Vertex object that gives the location of the pick action. [in] IVertex* PointSnapped // A Vertex object that gives the snapped location. ); /** * Event fired by TurboCAD when a point pick operation was completed or canceled. */ [ id(0x15) ,helpcontext(0x103F0015) ,helpstring("Event fired by TurboCAD when a point pick operation was completed or canceled.") ] HRESULT PointPick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] PickResult* Result, // The PickResult object describing what was picked. [in] IMSI_BOOL PickWasCanceled // True if the pick operation was canceled by the user. ); /** * Event fired by TurboCAD when a rectangle pick operation was completed or canceled. */ [ id(0x16) ,helpcontext(0x103F0016) ,helpstring("Event fired by TurboCAD when a rectangle pick operation was completed or canceled.") ] HRESULT RectanglePick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] PickResult* Result, // The PickResult object describing what was picked. [in] IMSI_BOOL PickWasCanceled // True if the pick operation was canceled by the user. ); /** * Event fired by TurboCAD when a polygon pick operation was completed or canceled. */ [ id(0x17) ,helpcontext(0x103F0017) ,helpstring("Event fired by TurboCAD when a polygon pick operation was completed or canceled.") ] HRESULT PolygonPick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] PickResult* Result, // The PickResult object describing what was picked. [in] IMSI_BOOL PickWasCanceled // True if the pick operation was canceled by the user. ); /** * Event fired by TurboCAD before a View object is redrawn. */ [ id(0x18) ,helpcontext(0x103F0018) ,helpstring("Event fired by TurboCAD before a View object is redrawn.") ] HRESULT ViewBeforeRedraw( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView // The View object in which the action occurred. ); /** * Event fired by TurboCAD after a View object was redrawn. */ [ id(0x19) ,helpcontext(0x103F0019) ,helpstring("Event fired by TurboCAD after a View object was redrawn.") ] HRESULT ViewAfterRedraw( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView // The View object in which the action occurred. ); /** * Event fired by TurboCAD when a virtual intersection pick operation was completed or canceled. */ [ id(0x1a) ,helpcontext(0x103F001A) ,helpstring("Event fired by TurboCAD when a virtual intersection pick operation was completed or canceled.") ] HRESULT VirtualIntersectionPick( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] PickResult* Result, // The PickResult object describing what was picked. [in] IMSI_BOOL PickWasCanceled // True if the pick operation was canceled by the user. ); /** * Event fired by TurboCAD after the command has finished. */ [ id(0x1b) ,helpcontext(0x103F001B) ,helpstring("Event fired by TurboCAD after the command has finished.") ] HRESULT CommandBarControlDone( [in] CommandBarControl* WhichControl // The CommandBarControl object. ); /** * Event fired by TurboCAD after something was dropped into a drawing. */ [ id(0x1c) ,helpcontext(0x103F001C) ,helpstring("Event fired by TurboCAD after something was dropped into a drawing.") ] HRESULT Drop( [in] IDrawing* WhichDrawing, // The Drawing object that owns the View object. [in] View* WhichView, // The View object in which the action occurred. [in] Window* WhichWindow, // The Window object in which the action occurred. [in] Selection* Sel // The active Selection object. ); /** * Event fired by TurboCAD after a Drawing object is saved.")] */ [ id(0x1d) ,helpcontext(0x103F001D) ,helpstring("Event fired by TurboCAD after a Drawing object is saved.") ] HRESULT DrawingAfterSave( [in] IDrawing* WhichDrawing // The Drawing object that will be saved. ); /** * Event fired by TurboCAD before the Application object quits.")] */ // [ // id(0x1e) // ,helpcontext(0x103F0001) // ,helpstring("Event fired by TurboCAD before the Application object quits.") // ] // HRESULT Exit( // [in] IApplication* TheApp, // The Application object. // ); /** * Event fired by TurboCAD before a Drawing object is closed.")] */ // [ // id(0x1f) // ,helpcontext(0x103F001D) // ,helpstring("Event fired by TurboCAD before a Drawing object is closed.") // ] // HRESULT DrawingClose( // [in] IDrawing* WhichDrawing // The Drawing object that will be saved. // ); // }; /** * A TurboCAD macros. */ [ object, uuid(D04FB7F0-8D02-11d2-8DAF-000021452DB6) ,oleautomation ,dual ,helpcontext(0x10400000) ,helpstring("A TurboCAD Macro project.") ] interface Macro : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10400001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the index of the item in the collection. */ [ propget ,helpcontext(0x10400002) ,helpstring("Returns the index of the item in the collection.") ] HRESULT Index( [out, retval] long* prop // The index. ); /** * Returns the name of the object, as a string. */ [ propget ,helpcontext(0x10400003) ,helpstring("Returns the name of the object, as a string.") ] HRESULT Name( [out, retval] BSTR* prop // The name of the object. ); /** * Sets the name of the object, as a string. */ [ propput ,helpcontext(0x10400003) ,helpstring("Sets the name of the object, as a string.") ] HRESULT Name( [in] BSTR prop // The name of the object. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10400004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Returns the internal table entry ID. * Private. */ [ propget ,restricted ,helpcontext(0x10400005) ,helpstring("Private. Returns the internal table entry ID.") ] HRESULT _TableEntryID( [out, retval] long* prop // The table entry ID. ); /** * Returns the Drawing object that owns the object. */ [ propget ,helpcontext(0x10400006) ,helpstring("Returns the Drawing object that owns the object.") ] HRESULT Drawing( [out, retval] IDrawing** prop // The Drawing object. ); /** * Returns the Macro's project object's path. */ [ propget ,helpcontext(0x10400007) ,helpstring("Returns the Macro's project object's path.") ] HRESULT Path( [out, retval] BSTR* prop // path. ); /** * Sets the Macro's project object's path. */ [ propput ,helpcontext(0x10400007) ,helpstring("Sets the Macro's project object's path.") ] HRESULT Path( [in] BSTR prop // path. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Deletes the object. */ [ helpcontext(0x10400008) ,helpstring("Deletes the object.") ] HRESULT Delete( ); }; /** * A collection of Macro objects. */ [ object ,uuid(D04FB7F1-8D02-11d2-8DAF-000021452DB6) ,oleautomation ,dual ,helpcontext(0x10410000) ,helpstring("A collection of Macro projects objects.") ] interface Macros : IDispatch { ///////////////////////////// Properties \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Returns an Application object that represents the owner of the specified object. */ [ propget ,helpcontext(0x10410001) ,helpstring("Returns an Application object that represents the creator of the specified object.") ] HRESULT Application( [out, retval] IApplication** prop // The Application object. ); /** * Returns the number of items in the collection. */ [ propget ,helpcontext(0x10410002) ,helpstring("Returns the number of items in the collection.") ] HRESULT Count( [out, retval] long* prop // The number of items. ); /** * Returns part of a collection. */ [ propget ,id(DISPID_VALUE) ,helpcontext(0x10410003) ,helpstring("Returns part of a collection.") ] HRESULT Item( [in] VARIANT* Index, // Index of item to return. [out, retval] Macro** prop // The item. ); /** * Returns the parent object for the specified object. */ [ propget ,helpcontext(0x10410004) ,helpstring("Returns the parent object for the specified object.") ] HRESULT Parent( [out, retval] IDispatch** prop // The parent object. ); /** * Creates an enumeration object. */ [ propget ,restricted ,id(DISPID_NEWENUM) ,helpcontext(0x10410005) ,helpstring("Private. Creates an enumeration object.") ] HRESULT _NewEnum( [out, retval] IUnknown** prop // The enumeration object. ); /////////////////////////////// Methods \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /** * Adds a new Macro object to the collection. */ [ helpcontext(0x10410006) ,helpstring("Adds a new Macro object to the collection.") ] HRESULT Add( [in] BSTR Name, // The name of the new Macro object. [in] BSTR Path, [out, retval] Macro** prop // The newly created NamedView object. ); /** * Returns the index within the table collection of the specified table entry. * Private. */ [ restricted ,helpcontext(0x10410007) ,helpstring("Private. Returns the index within the table collection of the specified table entry.") ] HRESULT _FindIndex( [in] long TableEntryID, // The internal table ID. [out, retval] long* prop // The zero based index. ); /** * Returns an object from the table collection for the specified table entry. * Private. */ [ restricted ,helpcontext(0x10410008) ,helpstring("Private. Returns an object from the table collection for the specified table entry.") ] HRESULT _ObjectFromID( [in] long TableEntryID, // The internal table ID. [out, retval] Macro** prop // The object. ); }; //////////////////////////////////////////////////////////////////////////// // TypeLibrary [ uuid(6A481400-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpfile("tcsdk.chm") ,helpcontext(0x12345678) ,helpstring("TurboCAD v4.1 Programmable Objects.") ] library IMSIGX { importlib("stdole32.tlb"); /** * Enumerated values for event mask. */ [ helpcontext(0x12345678) ,helpstring("Enumerated values for event mask.") ] typedef enum ImsiEventMask { imsiEventBeforeExit = 1L << 0, imsiEventDrawingNew = 1L << 1, imsiEventDrawingOpen = 1L << 2, imsiEventDrawingActivate = 1L << 3, imsiEventDrawingDeactivate = 1L << 4, imsiEventDrawingBeforeClose = 1L << 5, imsiEventDrawingBeforeSave = 1L << 6, imsiEventWindowResize = 1L << 7, imsiEventWindowActivate = 1L << 8, imsiEventWindowDeactivate = 1L << 9, imsiEventMouseDown = 1L << 10, imsiEventMouseUp = 1L << 11, imsiEventMouseMove = 1L << 12, imsiEventBeforeDoubleClick = 1L << 13, imsiEventBeforeRightClick = 1L << 14, imsiEventSelectionChange = 1L << 15, imsiEventCommandBarControlHit = 1L << 16, imsiEventCommandBarControlStatus = 1L << 17, imsiEventRunTool = 1L << 18, imsiEventPointSnapped = 1L << 19, imsiEventPointPick = 1L << 20, imsiEventRectanglePick = 1L << 21, imsiEventPolygonPick = 1L << 22, imsiEventViewBeforeRedraw = 1L << 23, imsiEventViewAfterRedraw = 1L << 24, imsiEventVirtualIntersectionPick = 1L << 25, imsiEventCommandBarControlDone = 1L << 26, imsiEventDrop = 1L << 27, imsiEventCancel = 1L << 28, imsiEventUpdateUndo = 1L << 29, imsiEventDrawingAfterSave = 1L << 30 } ImsiEventMask; /////////////////////////////////////////////////////////////////////////// // TurboCAD coclasses (EXE server) [ uuid(6A481000-E531-11CF-A115-00A024158DAF) // NSAM & LVR 012899 //appobject, /*predeclid,*/ ,hidden ,version(4.0) ,helpcontext(0x10420000) ,helpstring("The TurboCAD application.") ] coclass Global { [default] interface IGlobal; } [ uuid(6A481001-E531-11CF-A115-00A024158DAF) // NSAM & LVR 012899 //appobject, ,version(4.0) ,helpcontext(0x10430000) ,helpstring("The TurboCAD application.") ] coclass Application { [default] interface IApplication; [default, source] dispinterface IAppEvents; } // Note: this is the same magic CLSID used by TurboCAD 3.0! [ uuid(6A481002-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10440000) ,helpstring("A TurboCAD drawing.") ] coclass Drawing { [default] interface IDrawing; [default, source] dispinterface IAppEvents; } [ uuid(6A481003-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10450000) ,helpstring("A TurboCAD graphic.") ] coclass Graphic { [default] interface IGraphic; } [ uuid(6A481004-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10460000) ,helpstring("A TurboCAD vertex.") ] coclass Vertex { [default] interface IVertex; } [ uuid(6A481005-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10470000) ,helpstring("A transformation matrix.") ] coclass Matrix { [default] interface IMatrix; } [ uuid(6A481006-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10480000) ,helpstring("A TurboCAD camera.") ] coclass Camera { [default] interface ICamera; } [ uuid(6A481007-E531-11CF-A115-00A024158DAF) ,restricted, hidden ,version(4.0) ,helpcontext(0x10490000) ,helpstring("A TurboCAD grid.") ] coclass Grid { [default] interface IGrid; } [ uuid(6A481009-E531-11CF-A115-00A024158DAF) ,version(4.0) ,restricted, hidden ,helpcontext(0x104A0000) ,helpstring("A brush pattern.") ] coclass BrushPattern { [default] interface IBrushPattern; } /////////////////////////////////////////////////////////////////////////// // IMSIGX coclasses (DLL server) [ uuid(6A481800-E531-11CF-A115-00A024158DAF) ,appobject /*predeclid,*/ ,hidden ,version(4.0) ,helpcontext(0x104B0000) ,helpstring("The TurboCAD application.") ] coclass XGlobal { [default] interface IGlobal; } [ uuid(6A481801-E531-11CF-A115-00A024158DAF) //appobject, ,version(4.0) ,helpcontext(0x104C0000) ,helpstring("The TurboCAD application.") ] coclass XApplication { [default] interface IApplication; interface IGlobal; } [ uuid(6A481802-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x104D0000) ,helpstring("A TurboCAD drawing.") ] coclass XDrawing { [default] interface IDrawing; } [ uuid(6A481803-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x104E0000) ,helpstring("A TurboCAD graphic.") ] coclass XGraphic { [default] interface IGraphic; } [ uuid(6A481804-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x104F0000) ,helpstring("A TurboCAD vertex.") ] coclass XVertex { [default] interface IVertex; } [ uuid(6A481805-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10500000) ,helpstring("A transformation matrix.") ] coclass XMatrix { [default] interface IMatrix; } [ uuid(6A481806-E531-11CF-A115-00A024158DAF) ,version(4.0) ,helpcontext(0x10510000) ,helpstring("A TurboCAD camera.") ] coclass XCamera { [default] interface ICamera; } [ uuid(6A481807-E531-11CF-A115-00A024158DAF) ,restricted, hidden ,version(4.0) ,helpcontext(0x10520000) ,helpstring("A TurboCAD grid.") ] coclass XGrid { [default] interface IGrid; } [ uuid(6A481809-E531-11CF-A115-00A024158DAF) ,version(4.0) ,restricted, hidden ,helpcontext(0x10530000) ,helpstring("A brush pattern.") ] coclass XBrushPattern { [default] interface IBrushPattern; } [ uuid(6A481817-E531-11CF-A115-00A024158DAF) ,version(12.0) ,restricted, hidden ,helpcontext(0x10540000) ,helpstring("Unfo NotifySink.") ] coclass XUndoNotifySink { [default] interface IUndoNotifySink; } }